of<P extends Presenter<P>> static method

P of<P extends Presenter<P>>(
  1. BuildContext context
)

Implementation

static P of<P extends Presenter<P>>(BuildContext context) {
  return context.findAncestorStateOfType<PresenterProviderStateBuilder<P>>()!.presenter;
}