Invocation.genericMethod constructor

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

Creates an invocation corresponding to a generic method invocation.

If typeArguments is null or empty, the constructor is equivalent to calling Invocation.method with the remaining arguments. All the individual type arguments must be non-null.

If the named arguments are omitted, they default to no named arguments.


factory Invocation.genericMethod(Symbol memberName,
        Iterable<Type>? typeArguments, Iterable<Object?>? positionalArguments,
        [Map<Symbol, Object?>? namedArguments]) =>
        memberName, typeArguments, positionalArguments, namedArguments);