CodeField class

A field declaration inside a class: final Type name; or similar.

Annotations
  • @immutable

Constructors

CodeField({required String name, required String type, bool isFinal = true, String? defaultValue})
Creates a field node.
const

Properties

defaultValue → String?
Optional literal default value string, e.g. 'false', 'null'.
final
hashCode → int
The hash code for this object.
no setterinherited
isFinal → bool
Whether the field carries a final modifier.
final
name → String
Field name as it will appear in Dart source.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
Dart type string, e.g. 'bool', 'int?', 'SortOrder?'.
final

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