Language class Core

Complete language specification.

Represents a language with name, codes, and script variant.

Use the SdkSettings.getBestLanguageMatch to obtain a specific language or SdkSettings.languageList to obtain a list of supported languages.

Constructors

Language.new({String name = '', String languagecode = '', String regioncode = '', String scriptcode = '', ScriptVariant scriptvariant = ScriptVariant.native, bool isRightToLeft = false})
Creates a Language instance.
Language.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isRightToLeft bool
True if and only if the text is right to left.
getter/setter pair
languagecode String
ISO 639-3 three-letter language code.
getter/setter pair
name String
Language name.
getter/setter pair
regioncode String
ISO 3166-1 three-letter region code.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scriptcode String
ISO 15924 four-letter script code.
getter/setter pair
scriptvariant ScriptVariant
Script variant.
getter/setter pair

Methods

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

Operators

operator ==(covariant Language other) bool
The equality operator.
override