whereText method

  1. @useResult
WidgetSelector<Text> whereText(
  1. MatchProp<String> match
)

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

Example usage:

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

Implementation

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