Locale class

Локаль.

Available extensions

Constructors

Locale({required String language, required String region})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
language String
Код языка, описанный в стандарте ISO 639-1,
final
region String
Код страны, описанный в стандарте ISO 3166-1.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? language, String? region}) Locale
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

makeLocale(String localeStr) Locale?
Создать локаль по строковому представлению в виде LanguageTag или POSIX.