string static method
String?
string(
- TranslationMetadata<
BaseAppLocale, BaseTranslations> meta, - String path,
- Map<
String, Object> param
Implementation
static String? string(
TranslationMetadata meta, String path, Map<String, Object> param) {
final node = meta.overrides[path];
if (node == null) {
return null;
}
if (node is! StringTextNode) {
print(
'Overridden $path is not a StringTextNode but a ${node.runtimeType}.');
return null;
}
return node.content.applyParamsAndLinks(meta, param);
}