Scaffold constructor Null safety

const Scaffold(
  1. {Key? key,
  2. PreferredSizeWidget? appBar,
  3. Widget? body,
  4. Widget? floatingActionButton,
  5. FloatingActionButtonLocation? floatingActionButtonLocation,
  6. List<Widget>? persistentFooterButtons,
  7. Alignment persistentFooterAlignment,
  8. Widget? drawer,
  9. Widget? endDrawer,
  10. Widget? bottomNavigationBar,
  11. Widget? bottomSheet,
  12. Color? backgroundColor,
  13. bool? resizeToAvoidBottomInset,
  14. bool primary,
  15. bool extendBody,
  16. bool extendBodyBehindAppBar,
  17. Color? drawerScrimColor,
  18. double? drawerEdgeDragWidth,
  19. bool drawerEnableOpenDragGesture,
  20. bool endDrawerEnableOpenDragGesture,
  21. String? restorationId}
)

Implementation

const factory Scaffold(
    {final Key? key,
    final PreferredSizeWidget? appBar,
    final Widget? body,
    final Widget? floatingActionButton,
    final FloatingActionButtonLocation? floatingActionButtonLocation,
    final List<Widget>? persistentFooterButtons,
    final Alignment persistentFooterAlignment,
    final Widget? drawer,
    final Widget? endDrawer,
    final Widget? bottomNavigationBar,
    final Widget? bottomSheet,
    final Color? backgroundColor,
    final bool? resizeToAvoidBottomInset,
    final bool primary,
    final bool extendBody,
    final bool extendBodyBehindAppBar,
    final Color? drawerScrimColor,
    final double? drawerEdgeDragWidth,
    final bool drawerEnableOpenDragGesture,
    final bool endDrawerEnableOpenDragGesture,
    final String? restorationId}) = _$Scaffold;