pl method
Calls l with the specified localizationKey.
For example, if localizationKey is pages.home
and key
is title
, it is localized as pages.home.title
.
An assertion error occurs if localizationKey is not set.
Implementation
@protected
String pl(
String key, [
Map<String, Object>? namedParameters,
]) {
assert(localizationKey.isNotEmpty,
'localizationKey is not set. Please override localizationKey.');
return l(context, '$localizationKey.$key', namedParameters);
}