WidgetNodeTransformerManager class abstract

A wrapper class for both PassiveNodeTransformerManager and ActiveNodeTransformerManager.

Helps separate the functions that are common between them into one place.

Inheritance
Implementers

Constructors

WidgetNodeTransformerManager(GetNode getNode, LayoutRetrieverBuilder layoutRetrievalBuilder)

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.
final
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.
applyWidgetMargins(BaseNode node, Widget widget) Widget
Convenience method to handle widget margins.
applyWidgetOpacity(BaseNode node, Widget widget) Widget
Convenience method to handle widget opacity.
applyWidgetRotation(BuildContext context, BaseNode node, Widget widget) Widget
Convenience method to handle widget rotation.
applyWidgetVisibility(BuildContext context, BaseNode node, Widget widget, {required bool maintainState}) Widget
Convenience method to handle widget visibility.
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.
inherited
buildWidgetFromNode(BaseNode node, BuildContext context, {required WidgetBuildSettings settings}) Widget
Will convert a BaseNode to an O (probably Widget).
inherited
getBorderRadius(BaseNode node) BorderRadius?
getClipBehavior(BaseNode node) Clip
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.

Operators

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