Declaration class Null safety AST

A declaration (that is, a name: value pair).

Inheritance
Annotations

Constructors

Declaration(Interpolation name, Expression? value, FileSpan span)
Creates a declaration with no children.
Declaration.nested(Interpolation name, Iterable<Statement> children, FileSpan span, {Expression? value})
Creates a declaration with children. [...]

Properties

children List<Statement>?
The child statements of this statement.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
name Interpolation
The name of this declaration.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
span FileSpan
The source span associated with the node. [...]
final
value Expression?
The value of this declaration. [...]
final

Methods

accept<T>(StatementVisitor<T> visitor) → T
Calls the appropriate visit method on visitor.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited