resolve method
Retrieve the localized string for the given context
Implementation
@override
resolve(context) {
final localizations = Localizations.of<T>(context, T);
assert(localizations != null, 'No localizations in scope.');
return getText(context, localizations!);
}