PresenterProvider<P extends Presenter<View>> constructor Null safety

PresenterProvider<P extends Presenter<View>>(
  1. {Key? key,
  2. required P presenter(
      ),
    1. Widget? child}
    )

    Implementation

    PresenterProvider({
      Key? key,
      required P Function() presenter,
      Widget? child,
    }) : super(
            key: key,
            create: (_) => presenter(),
            dispose: (_, presenter) => presenter.dispose(),
            child: child,
          );