Invocation.method constructor Null safety

  1. Symbol memberName,
  2. Iterable<Object?>? positionalArguments,
  3. [Map<Symbol, Object?>? namedArguments]

Creates an invocation corresponding to a method invocation.

The method invocation has no type arguments. If the named arguments are omitted, they default to no named arguments.


factory Invocation.method(
        Symbol memberName, Iterable<Object?>? positionalArguments,
        [Map<Symbol, Object?>? namedArguments]) =>
    _Invocation.method(memberName, null, positionalArguments, namedArguments);