supportedLocales property

List<Locale>? get supportedLocales

Implementation

static List<Locale>? get supportedLocales => _locales == null
    ? null
    : _locales!.expand((e) {
        final List<String> locale = e.split('-');
        String languageCode;
        String? countryCode;
        if (locale.length == 2) {
          languageCode = locale.first;
          countryCode = locale.last;
        } else {
          languageCode = locale.first;
        }
        return [Locale(languageCode, countryCode)];
      }).toList();