Skip to main content

strictTranslate method

String strictTranslate (String key)

Implementation

String strictTranslate(String key) \{
if (isTest) return key;

ignore: unnecessary_null_comparison
if (key == null) \{
return '...';
\}

final String translate = _localizedStrings[key] ?? key;
return translate;
\}