PlainLocalizedString class

Inheritance

Constructors

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

Properties

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

Methods

get([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)
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).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
text({Key? key, BuildContext? context, TextStyle? style, StrutStyle? strutStyle, TextAlign? textAlign, TextDirection? textDirection, Locale? locale, bool? softWrap, TextOverflow? overflow, double? textScaleFactor, int? maxLines, String? semanticsLabel, TextWidthBasis? textWidthBasis, TextHeightBehavior? textHeightBehavior}) Widget
Translates string by locale like get method and wraps it with Text widget
toJson() Map<String, dynamic>
override
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
inherited

Operators

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