of static method
Get the current localizations based on the current context.
If null, defaults to currentLocalization
.
Implementation
static Localization of(BuildContext context) {
return getByLocale(context.locale) ?? currentLocalization;
}
Get the current localizations based on the current context.
If null, defaults to currentLocalization
.
static Localization of(BuildContext context) {
return getByLocale(context.locale) ?? currentLocalization;
}