toPage method

Page toPage(
  1. BuildContext context, {
  2. bool maintainState = true,
  3. LocalKey? key,
  4. bool fullscreenDialog = false,
})

Implementation

Page toPage(
  BuildContext context, {
  bool maintainState = true,
  LocalKey? key,
  bool fullscreenDialog = false,
}) =>
    platformPage(
      context: context,
      child: build(context),
      maintainState: maintainState,
      key: key,
      fullscreenDialog: fullscreenDialog,
      name: this.route!.route,
      title: this.route!.routeTitle(this.parameters),
      arguments: this.parameters,
    );