TypeBuilder class Null safety
The api used by TypeMacros to contribute new type declarations to the current library, and get TypeReferences from runtime Type objects.
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
-
addTypeToLibary(
Declaration typeDeclaration) → void - Adds a new type declaration to the surrounding library.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
-
typeReferenceOf<
T> () → TypeReference - Used to construct a TypeReference to a runtime type available to the the macro implementation code.
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited