MaterialPage<T> constructor

const MaterialPage<T>({
  1. required Widget child,
  2. bool maintainState = true,
  3. bool fullscreenDialog = false,
  4. bool allowSnapshotting = true,
  5. LocalKey? key,
  6. bool canPop = true,
  7. PopInvokedWithResultCallback<T> onPopInvoked = _defaultPopInvokedHandler,
  8. String? name,
  9. Object? arguments,
  10. String? restorationId,
})

Creates a material page.

Implementation

const MaterialPage({
  required this.child,
  this.maintainState = true,
  this.fullscreenDialog = false,
  this.allowSnapshotting = true,
  super.key,
  super.canPop,
  super.onPopInvoked,
  super.name,
  super.arguments,
  super.restorationId,
});