whereLocale method

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

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

Example usage:

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

Implementation

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