maybeOf<Watched, FFState extends Watchable<Watched>, ViewModel extends FFViewModel<Watched, FFState>, Controller extends FFController<Watched, FFState>> static method

FFVmAndControllerProvider<Watched, FFState, ViewModel, Controller>? maybeOf<Watched, FFState extends Watchable<Watched>, ViewModel extends FFViewModel<Watched, FFState>, Controller extends FFController<Watched, FFState>>(
  1. BuildContext context
)

Implementation

static FFVmAndControllerProvider<Watched, FFState, ViewModel, Controller>?
maybeOf<
  Watched,
  FFState extends Watchable<Watched>,
  ViewModel extends FFViewModel<Watched, FFState>,
  Controller extends FFController<Watched, FFState>
>(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<
        FFVmAndControllerProvider<Watched, FFState, ViewModel, Controller>
      >();
}