Locale class
Constructors
-
Locale(String _languageCode, [String? _countryCode])
-
Creates a new Locale object. The first argument is the
primary language subtag, the second is the region (also
referred to as 'country') subtag.
const
-
Locale.fromSubtags({String languageCode = 'und', String? scriptCode, String? countryCode})
-
Creates a new Locale object.
const
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toLanguageTag()
→ String
-
Returns a syntactically valid Unicode BCP47 Locale Identifier.
-
toString()
→ String
-
Returns a string representing the locale.
override