getRaw method
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).
Implementation
String getRaw([BuildContext? context]) {
final text = context != null
? values[AutoLocalization.of(context).locale.toString()]
: values[AutoLocalization.instance.locale.toString()];
if (text == null) {
throw FlutterError('AutoLocalized: value for $key is null. This should '
'never happen, you can fill bug report on github');
}
return text;
}