ConstructorDefinitionBuilder class Null safety
The apis used by DefinitionMacros to define the body of abstract or external constructors, as well as wrap the body of concrete constructors with additional statements.
Note that factory constructors should only provide a body
.
- Implemented types
Constructors
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
-
implement(
{FunctionBody? body, List< Code> ? initializers}) → void - Used to implement a constructor with a combination of initializers and/or a constructor body.
-
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
-
wrapBody(
{List< Statement> ? before, List<Statement> ? after}) → void - Used to wrap the body of a function, by running some code before or after the original body. [...]
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited