PageBuilder<TState> constructor

PageBuilder<TState>({
  1. required Widget builder(
    1. BuildContext context
    ),
  2. required BlocBuilder<TState> blocBuilder(),
  3. BlocEvent? initialEvent,
  4. bool onPopPage(
    1. Route route,
    2. dynamic result,
    3. PageArgs pageArgs
    )?,
})

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));