Field class

Inheritance
Implemented types
Annotations
  • @JsonSerializable(createToJson: false)

Constructors

Field({List<Annotation> annotations = const [], JavaDocComment? javadoc, Set<String> modifiers = const {}, required String name, required TypeUsage type, Object? defaultValue})
Field.fromJson(Map<String, dynamic> json)
factory

Properties

annotations List<Annotation>
final
classDecl ClassDecl
The ClassDecl where this field is defined.
latefinaloverride-getter
defaultValue Object?
final
finalName String
Populated by Renamer.
latefinal
hashCode int
The hash code for this object.
no setterinherited
isFinal bool
no setterinherited
isProtected bool
no setterinherited
isPublic bool
no setterinherited
isStatic bool
no setterinherited
javadoc JavaDocComment?
final
modifiers Set<String>
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type TypeUsage
final

Methods

accept<R>(Visitor<Field, R> v) → R
override
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