isSupported method
Whether resources for the given locale can be loaded by this delegate.
Return true if the instance of T
loaded by this delegate's load
method supports the given locale
's language.
Implementation
bool isSupported(Locale locale) {
var supportedLocales = _localizations.supportedLocales;
return supportedLocales == null
? true
: supportedLocales.contains(locale) ||
supportedLocales.contains(locale.languageCode);
}