withFontLocale method

  1. @useResult
WidgetSelector<AnyText> withFontLocale(
  1. Locale? value
)

Creates a WidgetSelector that finds all AnyText where fontLocale equals (==) value.

Example usage:

spot<AnyText>().withFontLocale(Locale('en', 'US')).existsOnce();

Implementation

@useResult
WidgetSelector<AnyText> withFontLocale(Locale? value) {
  return withDiagnosticProp<Locale>(
      'font_locale', (it) => value == null ? it.isNull() : it.equals(value));
}