VariableDefinition class

A Variable is used to store the value and refer the memory location in computer memory. When we create a variable (with a VariableDefinition also known as variable declaration), the Dart compiler allocates some space in memory. The size of the memory block of memory is depended upon the type of variable.

Inheritance
Implementers

Constructors

VariableDefinition(String name, {List<DocComment> docComments = const [], List<Annotation> annotations = const [], bool static = false, Modifier modifier = Modifier.var$, Type? type, Expression? value})

Properties

annotations List<Annotation>
final
docComments List<DocComment>
final
hasEndOfStatement bool
finalinherited
hashCode int
The hash code for this object.
no setterinherited
modifier Modifier
final
name String
final
nodes List<CodeNode>
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
static bool
If a static prefix is needed (only required for class fields)
final
type Type?
final
value Expression?
final

Methods

codeNodes(Context context) List<CodeNode>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toUnFormattedString(Context context) String
Recursive call to get the unformatted code from all nodes
inherited

Operators

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