findByText method

WidgetSelection findByText(
  1. String text
)

Implementation

WidgetSelection findByText(String text) => WidgetSelection._fromMatches(
  scope: 'widget $type [$key]',
  selector: 'findByText("$text")',
  matches:
      [
        this,
        ...descendants,
      ].where((widget) => _matchesText(widget.searchableText, text)).toList(),
);