whereLocale method

  1. @useResult
WidgetSelector<Text> whereLocale(
  1. MatchProp<Locale> match
)

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

Example usage:

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

Implementation

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