PlainLocalizedString class
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