class
Invocation

Representation of the invocation of a member on an object.

This is the type of objects passed to Object.noSuchMethod when an object doesn't support the member invocation that was attempted on it.

Properties

Symbol memberName
read-only
The name of the invoked member.
List positionalArguments
read-only
An unmodifiable view of the positional arguments of the call.
Map<Symbol> namedArguments
read-only
An unmodifiable view of the named arguments of the call.
bool isMethod
read-only
Whether the invocation was a method call.
bool isGetter
read-only
Whether the invocation was a getter call. If so, both types of arguments is empty.
bool isSetter
read-only
Whether the invocation was a setter call.
bool isAccessor
read-only
Whether the invocation was a getter or a setter call.

Constructors

Invocation()