locale property
Locale
get
locale
Implementation
Locale get locale {
final parts = rawValue.split('_');
if (parts.length == 2) {
return Locale(parts[0], parts[1]);
}
return Locale(parts[0]);
}