presenterOf<T extends Presenter<dynamic, AlfreedView> , M> static method
Find the closest PresenterInherited data with type M above the current widget and listen to data changes
Implementation
static T presenterOf<T extends Presenter, M>(
BuildContext context,
) =>
context
.dependOnInheritedWidgetOfExactType<PresenterInherited<T, M>>()!
.presenter;