hasLocale method

WidgetMatcher<Text> hasLocale(
  1. Locale? value
)

Expects that locale of Text equals (==) value.

Example usage:

spot<Text>().existsOnce().hasLocale(Locale('en', 'US'));

Implementation

WidgetMatcher<Text> hasLocale(Locale? value) {
  return hasDiagnosticProp<Locale>(
      'locale', (it) => value == null ? it.isNull() : it.equals(value));
}