Invocation.method constructor

Invocation.method(
  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.

Implementation

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/Invocation/Invocation.method.html