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> >(
- 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>
>();
}