copyWith method

DefineMScaffoldModifier copyWith({
  1. bool? autoHideKeyboardValue,
  2. PreferredSizeWidget? appBarValue,
  3. Color? valueBackgroundColor,
  4. bool? resizeToAvoidBottomInsetValue,
  5. Widget? drawerValue,
  6. DragStartBehavior? drawerDragStartBehaviorValue,
  7. Widget? endDrawerValue,
  8. Widget? floatingActionButtonValue,
  9. FloatingActionButtonLocation? floatingActionButtonLocationValue,
  10. FloatingActionButtonAnimator? floatingActionButtonAnimatorValue,
  11. List<Widget>? persistentFooterButtonsValue,
  12. Widget? bottomNavigationBarValue,
  13. Widget? bottomSheetValue,
  14. bool? primaryValue,
  15. Color? drawerScrimColorValue,
  16. bool? extendBodyValue,
  17. bool? extendBodyBehindAppBarValue,
  18. double? drawerEdgeDragWidthValue,
  19. bool? drawerEnableOpenDragGestureValue,
  20. bool? endDrawerEnableOpenDragGestureValue,
  21. DrawerCallback? onDrawerChangedValue,
  22. DrawerCallback? onEndDrawerChangedValue,
  23. String? restorationIdValue,
})

Create a copyWith().

Implementation

DefineMScaffoldModifier copyWith({
  bool? autoHideKeyboardValue,
  PreferredSizeWidget? appBarValue,
  Color? valueBackgroundColor,
  bool? resizeToAvoidBottomInsetValue,
  Widget? drawerValue,
  DragStartBehavior? drawerDragStartBehaviorValue,
  Widget? endDrawerValue,
  Widget? floatingActionButtonValue,
  FloatingActionButtonLocation? floatingActionButtonLocationValue,
  FloatingActionButtonAnimator? floatingActionButtonAnimatorValue,
  List<Widget>? persistentFooterButtonsValue,
  Widget? bottomNavigationBarValue,
  Widget? bottomSheetValue,
  bool? primaryValue,
  Color? drawerScrimColorValue,
  bool? extendBodyValue,
  bool? extendBodyBehindAppBarValue,
  double? drawerEdgeDragWidthValue,
  bool? drawerEnableOpenDragGestureValue,
  bool? endDrawerEnableOpenDragGestureValue,
  DrawerCallback? onDrawerChangedValue,
  DrawerCallback? onEndDrawerChangedValue,
  String? restorationIdValue,
}) {
  return DefineMScaffoldModifier(
    autoHideKeyboardValue:
        autoHideKeyboardValue ?? this.autoHideKeyboardValue,

    /// ===================From flutter===================
    appBarValue: appBarValue ?? this.appBarValue,
    valueBackgroundColor: valueBackgroundColor ?? this.valueBackgroundColor,
    resizeToAvoidBottomInsetValue:
        resizeToAvoidBottomInsetValue ?? this.resizeToAvoidBottomInsetValue,
    drawerValue: drawerValue ?? this.drawerValue,
    drawerDragStartBehaviorValue:
        drawerDragStartBehaviorValue ?? this.drawerDragStartBehaviorValue,
    endDrawerValue: endDrawerValue ?? this.endDrawerValue,
    floatingActionButtonValue:
        floatingActionButtonValue ?? this.floatingActionButtonValue,
    floatingActionButtonLocationValue: floatingActionButtonLocationValue ??
        this.floatingActionButtonLocationValue,
    floatingActionButtonAnimatorValue: floatingActionButtonAnimatorValue ??
        this.floatingActionButtonAnimatorValue,
    persistentFooterButtonsValue:
        persistentFooterButtonsValue ?? this.persistentFooterButtonsValue,
    bottomNavigationBarValue:
        bottomNavigationBarValue ?? this.bottomNavigationBarValue,
    bottomSheetValue: bottomSheetValue ?? this.bottomSheetValue,
    primaryValue: primaryValue ?? this.primaryValue,
    drawerScrimColorValue:
        drawerScrimColorValue ?? this.drawerScrimColorValue,
    extendBodyValue: extendBodyValue ?? this.extendBodyValue,
    extendBodyBehindAppBarValue:
        extendBodyBehindAppBarValue ?? this.extendBodyBehindAppBarValue,
    drawerEdgeDragWidthValue:
        drawerEdgeDragWidthValue ?? this.drawerEdgeDragWidthValue,
    drawerEnableOpenDragGestureValue: drawerEnableOpenDragGestureValue ??
        this.drawerEnableOpenDragGestureValue,
    endDrawerEnableOpenDragGestureValue:
        endDrawerEnableOpenDragGestureValue ??
            this.endDrawerEnableOpenDragGestureValue,
    onDrawerChangedValue: onDrawerChangedValue ?? this.onDrawerChangedValue,
    onEndDrawerChangedValue:
        onEndDrawerChangedValue ?? this.onEndDrawerChangedValue,
    restorationIdValue: restorationIdValue ?? this.restorationIdValue,
  );
}