get method
Return the string corresponding to key
, using map
and filters
to
replace the mustache-like variables.
Implementation
String get(
Symbol key, [
Map<String, dynamic>? map,
Map<String, MustacheFilter>? filters,
]) {
if (map == null) {
return _data.translate(key);
}
return _data.translateWithMap(
key,
map: map,
filters: filters,
locale: locale.toLanguageTag(),
);
}