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. String? name,
  7. Object? arguments,
  8. String? restorationId}
)

Creates a material page.

Implementation

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