NodeTypeTransformer<N extends BaseNode, O, BX, BS extends BuildSettings> class abstract

This is the base class for all transformers.

If you wish to create your own transformer, you need to create a passive version, then an active version that uses the passive version.

N is the node type. O is the output type, probably a Widget. BX is the context type, probably a BuildContext. BS is the build settings type, probably a WidgetBuildSettings. NTM is the node transformer manager, probably a WidgetNodeTransformerManager.

Codegen uses different O, BX, and BS types.

Implementers

Constructors

NodeTypeTransformer(GetNode getNode, NodeTransformerManager<dynamic, dynamic, BuildSettings, NodeTypeTransformer<BaseNode, dynamic, dynamic, BuildSettings>> manager)
Creates a new instance of the transformer.

Properties

getNode → GetNode
The function that returns a node by its id.
final
hashCode int
The hash code for this object.
no setterinherited
manager NodeTransformerManager<dynamic, dynamic, BuildSettings, NodeTypeTransformer<BaseNode, dynamic, dynamic, BuildSettings>>
The node transformer manager that this transformer is registered to.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildWidget(N node, BX context, BS settings) → O
Transforms a node into some output.
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