LocalizedString class abstract

Implementers

Constructors

LocalizedString(int id, {required String key, required Map<String, String> values})
const
LocalizedString.fromJson(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
final
key String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, String>
final

Methods

getRaw([BuildContext? context]) String
Translates string by locale from given context. You can get translation without passing context - then the last cached locale will be used. (Wrapping MaterialApp with AutoLocalizedApp is required) Returns raw value (without args applied).
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
when<T>({required T plain(PlainLocalizedString string), required T arg1(ArgLocalizedString1 string), required T arg2(ArgLocalizedString2 string), required T arg3(ArgLocalizedString3 string), required T arg4(ArgLocalizedString4 string), required T arg5(ArgLocalizedString5 string)}) → T

Operators

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