dataOf<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 M dataOf<T extends Presenter, M>(
BuildContext context,
) =>
context
.dependOnInheritedWidgetOfExactType<PresenterInherited<T, M>>()
?.presenter
.state;