WidgetTransformer class

A transformer that replaces a Figma node with a completely custom widget.

Inheritance

Constructors

WidgetTransformer({required NodeSelector selector, required WidgetBuilder builder, List<NodeTransformer> childTransformers = const []})
Creates a transformer that replaces a Figma node with a custom widget.
WidgetTransformer.byName(String name, {required WidgetBuilder builder, bool exact = true})
Factory method to create a widget transformer for nodes with a specific name.
factory

Properties

childTransformers List<NodeTransformer>
Transformers to apply to child nodes of the selected node.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selector NodeSelector
The selector that determines which nodes this transformer applies to.
finalinherited
transform Widget Function(TransformContext context, Widget widget)
The function that performs the transformation on the selected node.
finalinherited

Methods

appliesTo(Node node, Node? parent) bool
Checks if this transformer should be applied to the given node.
inherited
applyTransform(TransformContext context) Widget
Applies the transformation to the given context.
inherited
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