modify method

ScaffoldProperties modify({
  1. Color? backgroundColor,
  2. double? drawerEdgeDragWidth,
  3. bool? drawerEnableOpenDragGesture,
  4. DragStartBehavior? drawerDragStartBehavior,
  5. Color? drawerScrimColor,
  6. bool? endDrawerEnableOpenDragGesture,
  7. bool? extendBody,
  8. bool? extendBodyBehindAppBar,
  9. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  10. FloatingActionButtonLocation? floatingActionButtonLocation,
  11. bool? primary,
  12. AlignmentDirectional? persistentFooterAlignment,
  13. String? restorationId,
  14. bool? resizeToAvoidBottomInset,
})

Implementation

ScaffoldProperties modify({
  Color? backgroundColor,
  double? drawerEdgeDragWidth,
  bool? drawerEnableOpenDragGesture,
  DragStartBehavior? drawerDragStartBehavior,
  Color? drawerScrimColor,
  bool? endDrawerEnableOpenDragGesture,
  bool? extendBody,
  bool? extendBodyBehindAppBar,
  FloatingActionButtonAnimator? floatingActionButtonAnimator,
  FloatingActionButtonLocation? floatingActionButtonLocation,
  bool? primary,
  AlignmentDirectional? persistentFooterAlignment,
  String? restorationId,
  bool? resizeToAvoidBottomInset,
}) {
  return ScaffoldProperties(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    drawerEdgeDragWidth: drawerEdgeDragWidth ?? this.drawerEdgeDragWidth,
    drawerEnableOpenDragGesture:
        drawerEnableOpenDragGesture ?? this.drawerEnableOpenDragGesture,
    drawerDragStartBehavior:
        drawerDragStartBehavior ?? this.drawerDragStartBehavior,
    drawerScrimColor: drawerScrimColor ?? this.drawerScrimColor,
    endDrawerEnableOpenDragGesture:
        endDrawerEnableOpenDragGesture ?? this.endDrawerEnableOpenDragGesture,
    extendBody: extendBody ?? this.extendBody,
    extendBodyBehindAppBar:
        extendBodyBehindAppBar ?? this.extendBodyBehindAppBar,
    floatingActionButtonAnimator:
        floatingActionButtonAnimator ?? this.floatingActionButtonAnimator,
    floatingActionButtonLocation:
        floatingActionButtonLocation ?? this.floatingActionButtonLocation,
    primary: primary ?? this.primary,
    persistentFooterAlignment:
        persistentFooterAlignment ?? this.persistentFooterAlignment,
    restorationId: restorationId ?? this.restorationId,
    resizeToAvoidBottomInset:
        resizeToAvoidBottomInset ?? this.resizeToAvoidBottomInset,
  );
}