DBCupertinoPage constructor Null safety
- {required LocalKey key,
- required Destination destination,
- required Widget child,
- String? restorationId,
- DBPageRoute customPageRouteFactory(
- DBCupertinoPage page
Create a DBCupertinoPage 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
DBCupertinoPage({
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,
);