findByText method

WidgetSelection findByText(
  1. String text
)

Implementation

WidgetSelection findByText(String text) => WidgetSelection._fromMatches(
  scope: '$kind $name',
  selector: 'findByText("$text")',
  matches:
      widgets
          .where((widget) => _matchesText(widget.searchableText, text))
          .toList(),
);