hasLocaleWhere method

WidgetMatcher<Text> hasLocaleWhere(
  1. MatchProp<Locale> match
)

Expects that locale of Text matches the condition in match.

Example usage:

spot<Text>().existsOnce().hasLocaleWhere((it) => it.equals(Locale('en', 'US')));

Implementation

WidgetMatcher<Text> hasLocaleWhere(MatchProp<Locale> match) {
  return hasDiagnosticProp<Locale>('locale', match);
}