maybeOf<T> static method

SuggestionsController<T>? maybeOf<T>(
  1. BuildContext context
)

Implementation

static SuggestionsController<T>? maybeOf<T>(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<SuggestionsControllerProvider<T>>()
      ?.notifier;
}