Locales class

Constructors

Locales({String name = "English", String native = "English", String code = "en_US", Locale locale = const Locale("en", "US")})
const
Locales.from(Object? source)
factory

Properties

code String
final
hashCode int
The hash code for this object.
no setteroverride
locale Locale
final
name String
final
native String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Map<String, String>
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

Static Methods

codes() Iterable<String>
languageName(String locale) String?
languageNames() Iterable<String>
nativeName(String locale) String?
nativeNames() Iterable<String>
parse(String source) Locale
tryParse(String source) Locale?