init static method

dynamic init(
  1. String locale
)

Implementation

static init(String locale) {
  localeCode = locale;
  countries = [];
  for (Country country in _countries) {
    Country value = country;
    value.name = country.code.tr();
    countries.add(value);
  }
  countries.sort((a, b) => a.name.compareTo(b.name));
}