Language class Null safety

An object that contains information about a language.

Constructors

Language({required String name, required String code, String? longCode, DetectedLanguage? detectedLanguage})
An object that contains information about a language.
Language.fromJson(Map<String, dynamic> json)
Creates this object from a json Map.
factory

Properties

code String
A language code like 'en' ,
final
detectedLanguage DetectedLanguage?
The automatically detected text language (might be different from the language actually used for checking).
final
hashCode int
The hash code for this object.
read-onlyoverride
longCode String?
A language code like 'en-US' or 'ca-ES-valencia'
final
name String
A language name like 'French' or 'English (Australia)'
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

copyWith({String? name, String? code, String? longCode, DetectedLanguage? detectedLanguage}) Language
Copies the object with the specified values changed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this object into a json Map.
toString() String
A string representation of this object.
override

Operators

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