getAllCountryCodes static method

List<String> getAllCountryCodes({
  1. bool isForce = false,
})

returns a list of all available country codes like 'RU', 'US', 'GB' etc

Implementation

static List<String> getAllCountryCodes({
  bool isForce = false,
}) {
  if (_countryCodes == null || isForce) {
    _countryCodes = _data.map((e) => e['countryCode'].toString()).toList();
  }
  return _countryCodes!;
}