isSupportedLocale method Null safety

dynamic isSupportedLocale(
  1. Locale locale
)

Is the provided locale supported

Implementation

static isSupportedLocale(Locale locale) {
  var index =
      supportedLocales.indexWhere((_locale) => '$_locale' == '$locale');
  return index > -1;
}