PageBuilder<TState> constructor
PageBuilder<TState> ({
- required Widget builder(
- BuildContext context
- required BlocBuilder<
TState> blocBuilder(), - BlocEvent? initialEvent,
- bool onPopPage()?,
Constructs a new page builder
Implementation
PageBuilder({
required this.builder,
required this.blocBuilder,
this.initialEvent,
// ignore: avoid_annotating_with_dynamic
bool Function(
Route<dynamic> route,
// ignore: avoid_annotating_with_dynamic
dynamic result,
PageArgs<dynamic> pageArgs,
)?
onPopPage,
}) : onPopPage = onPopPage ??
((
route,
// ignore: implicit_dynamic_parameter
result,
pageArgs,
) =>
route.didPop(result));