BrownfieldSelection class final

Deferred selector chain resolved later against a ProjectSnapshot.

A selection is only validated when the brownfield edit compiles. That lets selectors stay declarative and rerun-safe across project snapshots.

Properties

editor BrownfieldWidgetEditor
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findByKey(String key) BrownfieldSelection
Descends by exact existing widget key.
findByName(String name) BrownfieldSelection
Descends by widget name:.
findByPath(String path) BrownfieldSelection
Selects a descendant by its deterministic tree path.
findByText(String text) BrownfieldSelection
Descends by visible text.
findByType(String type) BrownfieldSelection
Descends by widget type name.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(WidgetClassSnapshot snapshot) WidgetSelection
slot(String name) BrownfieldSelection
Descends into a named structural slot.
toString() String
A string representation of this object.
inherited
update(void build(BrownfieldWidgetPatch patch)) → void
Applies a typed property patch to the selected widget.

Operators

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