BrownfieldWidgetEditor class final
Selector builder and operation recorder for brownfield structural edits.
This type is mutable only while the edit closure runs. It stores selectors and operations, then resolves them against the latest project snapshot at compile time.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- root → BrownfieldSelection
-
The widget-class root.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scopeLabel → String
-
no setter
- widgetClassName → String
-
final
Methods
-
bindText(
BrownfieldSelection selection, Object? value) → void - Binds the selected widget's text-like value to a DSL expression.
-
bindValue(
BrownfieldSelection selection, Object? value) → void - Binds the selected widget's value property to a DSL expression.
-
bindVisible(
BrownfieldSelection selection, Object? value) → void - Binds the selected widget's visibility to a boolean DSL expression.
-
ensureActions(
BrownfieldSelection selection, {required FFActionTriggerType triggerType, required List< DslAction> actions}) → void -
Ensures one trigger chain exists on the selected widget for
triggerType. -
ensureInsertedAfter(
BrownfieldSelection selection, DslWidget widget) → void -
Inserts
widgetimmediately after the selected existing widget. -
ensureInsertedBefore(
BrownfieldSelection selection, DslWidget widget) → void -
Inserts
widgetimmediately before the selected existing widget. -
ensureInsertedInto(
BrownfieldSelection selection, DslWidget widget, {String? slot, int? index}) → void -
Inserts
widgetinto the selected parent or slot. -
ensureMovedTo(
BrownfieldSelection selection, BrownfieldSelection destination, {String? slot, int? index}) → void - Moves the selected existing widget into a new destination/slot.
-
ensureRemoved(
BrownfieldSelection selection) → void - Removes the selected existing widget.
-
ensureReplaced(
BrownfieldSelection selection, DslWidget widget) → void - Replaces the selected existing widget while preserving its key.
-
findByKey(
String key) → BrownfieldSelection - Selects descendants by exact existing widget key.
-
findByName(
String name) → BrownfieldSelection -
Selects descendants by widget
name:. -
findByPath(
String path) → BrownfieldSelection - Selects a descendant by its deterministic tree path.
-
findByText(
String text) → BrownfieldSelection - Selects descendants by visible text.
-
findByType(
String type) → BrownfieldSelection - Selects descendants by FlutterFlow widget type name.
-
mutateNode(
BrownfieldSelection selection, void mutate(FFNode node)) → void -
Mutates the resolved FFNode directly via
mutate. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setComponentParam(
BrownfieldSelection selection, String paramName, Object? value) → void - Binds a component instance parameter to a DSL value or expression.
-
slot(
String name) → BrownfieldSelection - Selects a named structural slot from the current selection.
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
BrownfieldSelection selection, void build(BrownfieldWidgetPatch patch)) → void - Applies a typed property patch to an existing widget.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited