MethodCall constructor Null safety

const MethodCall(
  1. String method,
  2. [dynamic arguments]
)

Creates a MethodCall representing the invocation of method with the specified arguments.

Implementation

const MethodCall(this.method, [this.arguments])
  : assert(method != null);