Language class

Represents a language with a code and name, compatible with Flutter locales.

Constructors

Language.new({required String code, required String name})

Properties

code String
ISO language code (e.g., 'en' for English).
final
hashCode int
The hash code for this object.
no setteroverride
name String
Human-readable name (e.g., 'English').
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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