FieldDefinitionBuilder class Null safety

The api used by DefinitionMacros to implement abstract or external fields.

Note that concrete fields cannot be implemented in this way.

Implemented types

Constructors

FieldDefinitionBuilder()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
typeDefinitionOf<T>() TypeDefinition
Used to construct a TypeDefinition to a runtime type available to the the macro implementation code.
inherited
withGetterSetterPair(Declaration getter, Declaration setter, {List<Code>? supportingDeclarations}) → void
Implement this as a getter/setter pair, with an optional new backing field.
withInitializer(Expression body, {List<Code>? supportingDeclarations}) → void
Implement this as a normal field and supply an initializer.

Operators

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