DBMaterialPage constructor
DBMaterialPage({
- required LocalKey key,
- required Destination destination,
- required Widget child,
- String? restorationId,
- DBPageRoute customPageRouteFactory(
- 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,
);