MaterialPage<T> constructor Null safety

const MaterialPage<T>(
  1. {required Widget child,
  2. bool maintainState = true,
  3. bool fullscreenDialog = false,
  4. bool preferRasterization = 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.preferRasterization = true,
  super.key,
  super.name,
  super.arguments,
  super.restorationId,
}) : assert(child != null),
     assert(maintainState != null),
     assert(fullscreenDialog != null);