hasTextWhere method

WidgetMatcher<Text> hasTextWhere(
  1. MatchProp<String> match
)

Expects that text of Text matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<Text> hasTextWhere(MatchProp<String> match) {
  return hasDiagnosticProp<String>('data', match);
}