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

hashCode int

Get a hash code for this object.

read-only, inherited
isAccessor bool

Whether the invocation was a getter or a setter call.

read-only
isGetter bool

Whether the invocation was a getter call. If so, both types of arguments is empty.

read-only
isMethod bool

Whether the invocation was a method call.

read-only
isSetter bool

Whether the invocation was a setter call.

read-only
memberName Symbol

The name of the invoked member.

read-only
namedArguments Map<Symbol, dynamic>

An unmodifiable view of the named arguments of the call.

read-only
positionalArguments

An unmodifiable view of the positional arguments of the call.

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Constructors

Invocation()

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

noSuchMethod is invoked when users invoke a non-existent method on an object. The name of the method and the arguments of the invocation are passed to noSuchMethod in an Invocation. If noSuchMethod returns a value, that value becomes the result of the original invocation.

inherited
toString() String

Returns a string representation of this object.

inherited