whereLocale method

Creates a WidgetSelector that finds all EditableText where locale matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<EditableText> whereLocale(MatchProp<Locale> match) {
  return withDiagnosticProp<Locale>('locale', match);
}