IndexedInvocation class final

An invocation in an indexed file, such as locator<A>(), context.nav.home.details(id: 1) or HomeScreen().

Constructors

IndexedInvocation(String name, {String? target, List<String> typeArguments = const [], List<String> namedArguments = const [], String? enclosingDeclaration, String? enclosingMember, bool awaited = false, int offset = 0})
Creates the index of an invocation of name.
const

Properties

awaited → bool
Whether the invocation is the operand of an await.
final
enclosingDeclaration → String?
The name of the top-level declaration the invocation is in, or null outside any.
final
enclosingMember → String?
The name of the method, getter, setter or operator of enclosingDeclaration that the invocation is in, such as build, or null outside any: in a top-level function or variable, in a constructor, or in the initializer of a field.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of the invoked function, method or class.
final
namedArguments → List<String>
The names of the named arguments.
final
offset → int
The offset of the invocation in the file.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target → String?
The expression before the name, as written, such as context.nav.home in context.nav.home.details(); null for a plain call.
final
typeArguments → List<String>
The type arguments, as written, such as ['AnalyticsService'].
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited