of static method

L10n? of(
  1. BuildContext context
)

Return an instance of the L10Locale class Really not needed. L10n. prefix can be used instead. Merely for conformity.

Implementation

static L10n? of(BuildContext context) =>
    Localizations.of<L10n>(context, L10n);