BrownfieldPatternTarget.byPath constructor

BrownfieldPatternTarget.byPath(
  1. String path
)

Targets an existing widget by its deterministic tree path.

Paths use the brownfield snapshot grammar: root is the widget-class name, slotted children use .<slotName>[index], and generic children use .children[index].

Implementation

factory BrownfieldPatternTarget.byPath(String path) =>
    BrownfieldPatternTarget._(_PatternTargetKind.byPath, path);