dataOf<T extends Presenter<dynamic, AlfreedView>, M> static method

M dataOf<T extends Presenter<dynamic, AlfreedView>, M>(
  1. BuildContext context
)

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;