supportedRegions property

List<String> get supportedRegions

Returns all regions the library has metadata for. This returns the two-letter region codes for every geographical region the library supports.

Implementation

List<String> get supportedRegions {
  final List<List<String>> regionCodesList = _metadataMapLoader
      .countryCodeToRegionCodeMap.entries
      .where((mapEntry) => !_isNonGeographicalRegionCode(mapEntry.value))
      .map((e) => e.value)
      .toList();
  return regionCodesList.expand((e) => e).toList();
}