locale property

String get locale

Locale ID

See Unicode Language Identifier for more info

Implementation

String get locale {
  if (countryCode == null) {
    return languageCode;
  }

  return "${languageCode}_$countryCode";
}