LocalizedString class abstract
Constructors
-
LocalizedString(int id, {required String key, required Map<
String, String> values}) -
const
-
LocalizedString.fromJson(Map<
String, dynamic> map) -
factory
Properties
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