isSupported method
bool isSupported (Locale locale)
override
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
@override
bool isSupported(Locale locale) {
// Include all of your supported language codes here
return ['en', 'es', 'fr', 'hi', 'zh', 'de', 'ja', 'pt']
.contains(locale.languageCode);
}