of static method

Implementation

static SmartAutoSuggestBoxLocalizations of(BuildContext context) {
  final instance = SmartAutoSuggestBoxLocalizations.maybeOf(context);
  assert(
    instance != null,
    'No instance of SmartAutoSuggestBoxLocalizations present in the widget tree. Did you add SmartAutoSuggestBoxLocalizations.delegate in localizationsDelegates?',
  );
  return instance!;
}