IndexedDeclaration class final

A top-level declaration of an indexed file.

Constructors

IndexedDeclaration({required String name, required DeclarationKind kind, String? type, List<IndexedParameter> parameters = const [], List<IndexedConstructor> constructors = const [], List<IndexedMember> members = const [], List<String> annotations = const [], bool isAsync = false, int offset = 0})
Creates the index of the declaration name.
const

Properties

annotations → List<String>
The annotations, as written, such as @RoutePage(name: 'HomeRoute').
final
constructors → List<IndexedConstructor>
The constructors declared by a class, enum or extension type; empty if it declares none and so has only the implicit default constructor.
final
hashCode → int
The hash code for this object.
no setterinherited
isAsync → bool
Whether the body of a function is async or async*.
final
kind → DeclarationKind
What is declared.
final
members → List<IndexedMember>
The members declared in the body of a class other than its constructors, or in the body of an extension, in source order: its fields, getters, setters and methods, static or not. The members that a class inherits are not among them, and the index records no members of other declarations.
final
name → String
The declared name.
final
offset → int
The offset of the declaration in the file.
final
parameters → List<IndexedParameter>
The parameters of a function or setter.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String?
The declared type as written: the return type of a function or getter, the type of a variable, or the type that an extension is on; null if it is not written.
final
unnamedConstructor → IndexedConstructor?
The unnamed constructor, the implicit default one if the declaration declares no constructors, or null if it declares only named ones.
no setter

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