of static method

KLocalizations? of(
  1. BuildContext context, {
  2. bool listen = true,
})

Obtains the nearest KLocalizations up its widget tree and returns its value.

Implementation

static KLocalizations? of(BuildContext context, {bool listen = true}) {
  return Localizations.of<KLocalizations>(context, KLocalizations);
}