BrownfieldPatternTarget.byText constructor

BrownfieldPatternTarget.byText(
  1. String text
)

Targets existing widgets by visible text.

This is convenient but can be brittle when copy changes. Prefer byKey or byName when you need exact identity.

Implementation

factory BrownfieldPatternTarget.byText(String text) =>
    BrownfieldPatternTarget._(_PatternTargetKind.byText, text);