CupertinoPage<T> constructor Null safety

const CupertinoPage<T>(
  1. {required Widget child,
  2. bool maintainState = true,
  3. String? title,
  4. bool fullscreenDialog = false,
  5. bool preferRasterization = true,
  6. LocalKey? key,
  7. String? name,
  8. Object? arguments,
  9. String? restorationId}
)

Creates a cupertino page.

Implementation

const CupertinoPage({
  required this.child,
  this.maintainState = true,
  this.title,
  this.fullscreenDialog = false,
  this.preferRasterization = true,
  super.key,
  super.name,
  super.arguments,
  super.restorationId,
}) : assert(child != null),
     assert(maintainState != null),
     assert(fullscreenDialog != null);