AppLocale class

A BCP-47-ish locale tag (language-region).

Constructors

AppLocale(String language, [String? region])
const
AppLocale.parse(String tag)
Parses en, en_US, en-US, tr_TR into an AppLocale.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
language → String
Language subtag, lowercase (e.g. en, tr).
final
languageOnly → AppLocale
The language-only fallback locale.
no setter
region → String?
Optional region subtag, uppercase (e.g. US, TR); null when absent.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → String
The canonical tag form (en, en_US).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override