whereText method

Creates a WidgetSelector that finds all SelectableText where text matches the condition.

Example usage:

spot<SelectableText>().whereText((it) => it.equals('foo')).existsOnce();

Implementation

@useResult
WidgetSelector<SelectableText> whereText(MatchProp<String> match) {
  return withDiagnosticProp<String>('data', match);
}