of static method

Inherited lookup from BuildContext.

Implementation

static NashLocalizations of(BuildContext context) {
  final NashLocalizations? loc =
      Localizations.of<NashLocalizations>(context, NashLocalizations);
  assert(loc != null, 'NashLocalizations not found in widget tree.');
  return loc!;
}