PassiveNodeTransformerManager class

This is the passive implementation of the NodeTransformerManager, registering all the transformers that are available in the SDK.

Inheritance

Constructors

PassiveNodeTransformerManager(GetNode getNode, LayoutRetrieverBuilder retrieveLayout)
This is the registry of transformers that are used by the manager.

Properties

getNode → GetNode
finalinherited
hashCode int
The hash code for this object.
no setterinherited
layoutRetrievalBuilder LayoutRetrieverBuilder
Returns a widget that decides how to load nested layouts of a rendered node.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyWidgetConstraints(BaseNode node, Widget widget) Widget
Convenience method to handle widget constraints.
inherited
applyWidgetMargins(BaseNode node, Widget widget) Widget
Convenience method to handle widget margins.
inherited
applyWidgetOpacity(BaseNode node, Widget widget) Widget
Convenience method to handle widget opacity.
inherited
applyWidgetRotation(BuildContext context, BaseNode node, Widget widget) Widget
Convenience method to handle widget rotation.
inherited
applyWidgetVisibility(BuildContext context, BaseNode node, Widget widget, {required bool maintainState}) Widget
Convenience method to handle widget visibility.
inherited
buildWidgetByID(String id, BuildContext context, {required WidgetBuildSettings settings}) Widget
Will convert a T (probably BaseNode) to a K (probably Widget). Managers can do whatever they want here. This is where they normally wrap the widget with interaction for example.
override
buildWidgetFromNode(BaseNode node, BuildContext context, {required WidgetBuildSettings settings}) Widget
Will convert a BaseNode to an O (probably Widget).
override
getBorderRadius(BaseNode node) BorderRadius?
inherited
getClipBehavior(BaseNode node) Clip
inherited
getStorageListenerFor(VariableMatch match, BuildContext context) Listenable?
getTransformer<L>() → L
A convenience method that pulls the relevant transformer by its type.
inherited
getTransformerByID(String id) NodeWidgetTransformer<BaseNode>
Get a transformer from a given node type key.
inherited
getTransformerByNode(BaseNode node) NodeWidgetTransformer<BaseNode>
Get a transformer from a given node's type.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAllTransformers(Map<String, NodeWidgetTransformer<BaseNode>> transformers) → void
Registers a map of transformers in the registry.
inherited
registerTransformer(String key, NodeWidgetTransformer<BaseNode> transformer) → void
Registers a transformer in the registry. The key must match the node BaseNode.type. NT is an instance of the NodeTypeTransformer to register.
inherited
toString() String
A string representation of this object.
inherited
wrapWithReaction(BuildContext context, BaseNode node, Widget widget) Widget
Convenience method to handle widget reactions.
inherited

Operators

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