FieldDeclaration class

The declaration of one or more fields of the same type.

fieldDeclaration ::= 'static' 'const'

(Note: there is no

Prior to the 'extension-methods' experiment, these nodes were always children of a class declaration. When the experiment is enabled, these nodes can also be children of an extension declaration.

Implemented types

Constructors

FieldDeclaration(VariableDeclarationList? fields, List<Annotation> metadata)

Properties

fields VariableDeclarationList?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
metadata List<Annotation>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

fromAst(Map? ast) FieldDeclaration?