translationsOf static method
Returns the translations configured for the nearest FdcApp, the Flutter Localizations tree, or English defaults.
Implementation
static FdcTranslations translationsOf(BuildContext context) {
final explicit = _scopeOf(context)?.translations;
if (explicit != null) {
return explicit;
}
final localized = FdcLocalizations.maybeOf(context)?.translations;
if (localized != null) {
return localized;
}
return _translationsFromContext(context);
}