CupertinoPageScaffold constructor Null safety

const CupertinoPageScaffold(
  1. {Key? key,
  2. ObstructingPreferredSizeWidget? navigationBar,
  3. Color? backgroundColor,
  4. bool resizeToAvoidBottomInset = true,
  5. required Widget child}
)

Creates a layout for pages with a navigation bar at the top.

Implementation

const CupertinoPageScaffold({
  super.key,
  this.navigationBar,
  this.backgroundColor,
  this.resizeToAvoidBottomInset = true,
  required this.child,
}) : assert(child != null),
     assert(resizeToAvoidBottomInset != null);