of static method

Localize of(
  1. BuildContext context
)

Retrieves the Localize instance from the provided BuildContext.

This method is used to access localization data from the widget tree.

Implementation

static Localize of(BuildContext context) {
  return Localizations.of(context, Localize)!;
}