FunctionDefinitionBuilder class Null safety
The apis used by DefinitionMacros to define the body of abstract or external functions (or methods), as well as wrap the body of concrete functions or methods with additional statements.
- 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> ? supportingDeclarations}) → void -
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, List<Declaration> ? supportingDeclarations}) → 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