CupertinoPageScaffold constructor Null safety

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

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

Implementation

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