get static method

Localization? get({
  1. required String code,
  2. String? country,
})

Get a localization based on code and country.

Throws an AssertionError if code is null

Implementation

static Localization? get({
  required String code,
  String? country,
}) =>
    getByLocale(Locale(code, country?.toUpperCase()));