Field class
A Field is a VariableDefinition in a Class.
See https://dart.dev/guides/language/language-tour#using-class-members
- Inheritance
Constructors
-
Field(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> -
finalinherited
-
docComments
→ List<
DocComment> -
finalinherited
- hasEndOfStatement → bool
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- modifier → Modifier
-
finalinherited
- name → String
-
finalinherited
-
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)
finalinherited
- type → Type?
-
finalinherited
- value → Expression?
-
finalinherited
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