of static method

Localization of(
  1. BuildContext context
)

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;
}