DBMaterialPage constructor

DBMaterialPage({
  1. required LocalKey key,
  2. required Destination destination,
  3. required Widget child,
  4. String? restorationId,
  5. DBPageRoute customPageRouteFactory(
    1. DBMaterialPage page
    )?,
})

Create a DBMaterialPage with key identifying the page, destination of the page and child to put at that destination.

Note: key should be non-existent in the current navigation stack.

Implementation

DBMaterialPage({
  required LocalKey key,
  required this.destination,
  required Widget child,
  String? restorationId,
  this.customPageRouteFactory,
}) : super(
        key: key,
        name: destination.path,
        arguments: destination.metadata,
        child: child,
        maintainState: true,
        fullscreenDialog: false,
        restorationId: restorationId,
      );