MaterialPage<T> constructor
const
MaterialPage<T> ({
- required Widget child,
- bool maintainState = true,
- bool fullscreenDialog = false,
- bool allowSnapshotting = true,
- bool includeRouteSemantics = true,
- LocalKey? key,
- bool canPop = true,
- PopInvokedWithResultCallback<
T> onPopInvoked = _defaultPopInvokedHandler, - String? name,
- Object? arguments,
- String? restorationId,
Creates a material page.
Implementation
const MaterialPage({
required this.child,
this.maintainState = true,
this.fullscreenDialog = false,
this.allowSnapshotting = true,
this.includeRouteSemantics = true,
super.key,
super.canPop,
super.onPopInvoked,
super.name,
super.arguments,
super.restorationId,
});