copyWith method

DefineMAddButtonModifier copyWith({
  1. double? iconSizeValue,
  2. Color? imageColorValue,
  3. String? valueImageIcon,
  4. double? valueImageWidth,
  5. double? valueImageHeight,
  6. double? valueCloseButtonSize,
  7. double? valueMarginCloseTop,
  8. VoidCallback? valueClickClose,
  9. int? valueMaxImagesLength,
  10. OnImage? valueOnImage,
  11. Key? valueKey,
  12. EdgeInsets? valuePadding,
  13. EdgeInsets? valueMargin,
  14. GestureTapCallback? valueOnTap,
  15. GestureLongPressCallback? valueOnLongPress,
  16. GestureLongPressMoveUpdateCallback? valueOnLongPressMoveUpdate,
  17. GestureLongPressUpCallback? valueOnLongPressUp,
  18. VoidCallback? valueDragOutToStatusBar,
  19. Color? valueBackgroundColor,
  20. BorderRadius? valueBorderRadius,
  21. bool? valueCenterAlign,
  22. double? valueWidth,
  23. double? valueHeight,
  24. BoxShadow? valueShadow,
  25. Matrix4? valueTransform,
  26. BoxConstraints? valueConstraints,
  27. double? valueAspectRatio,
  28. int? valueFlex,
  29. bool? valueOutSizeFlex,
  30. String? valueHelp,
  31. double? valueOpacity,
  32. double? valueRotate,
  33. double? valueScale,
  34. Gradient? valueGradient,
  35. Border? valueBorder,
  36. BoxShape? valueShape,
  37. String? valueBackgroundImage,
  38. BoxFit? valueBackgroundImageFit,
  39. MGravity? valueGravity,
  40. Gradient? valueGradientBorder,
  41. double? valueFullWidth,
  42. double? valueFullHeight,
  43. AlignmentGeometry? valueContainerAlignment,
  44. AlignmentGeometry? valueOutSideAlignment,
  45. bool? valueCancelFocusWhenClick,
  46. Border? valueOutsideBorder,
  47. double? valueLeft,
  48. double? valueRight,
  49. double? valueTop,
  50. double? valueBottom,
  51. double? valueSigmaX,
  52. double? valueSigmaY,
  53. Color? valueMaskColor,
  54. MaterialType? valueMaterialType,
  55. double? valueMaterialElevation,
  56. bool? valueScrollable,
  57. ScrollController? valueScrollController,
  58. SafeArea? valueSafeArea,
  59. bool? valueVisible,
  60. int? valueTabLength,
  61. RxInterface? valueObxListener,
  62. Color? valueOutsideBackgroundColor,
  63. BorderRadiusGeometry? valueOutsideBorderRadius,
  64. Object? valueHeroTag,
})

Create a copyWith().

Implementation

DefineMAddButtonModifier copyWith({
  double? iconSizeValue,
  Color? imageColorValue,
  String? valueImageIcon,
  double? valueImageWidth,
  double? valueImageHeight,
  double? valueCloseButtonSize,
  double? valueMarginCloseTop,
  VoidCallback? valueClickClose,
  int? valueMaxImagesLength,
  final OnImage? valueOnImage,

  /// The following properties are inherited from MGeneralModifier.
  /// Main.
  Key? valueKey,

  /// Contents:
  EdgeInsets? valuePadding,
  EdgeInsets? valueMargin,
  GestureTapCallback? valueOnTap,
  GestureLongPressCallback? valueOnLongPress,
  GestureLongPressMoveUpdateCallback? valueOnLongPressMoveUpdate,
  GestureLongPressUpCallback? valueOnLongPressUp,
  VoidCallback? valueDragOutToStatusBar,
  Color? valueBackgroundColor,
  BorderRadius? valueBorderRadius,
  bool? valueCenterAlign,
  double? valueWidth,
  double? valueHeight,
  BoxShadow? valueShadow,
  Matrix4? valueTransform,
  BoxConstraints? valueConstraints,
  double? valueAspectRatio,
  int? valueFlex,
  bool? valueOutSizeFlex,
  String? valueHelp,
  double? valueOpacity,
  double? valueRotate,
  double? valueScale,
  Gradient? valueGradient,
  Border? valueBorder,
  BoxShape? valueShape,
  String? valueBackgroundImage,
  BoxFit? valueBackgroundImageFit,
  MGravity? valueGravity,
  Gradient? valueGradientBorder,
  double? valueFullWidth,
  double? valueFullHeight,
  AlignmentGeometry? valueContainerAlignment,
  AlignmentGeometry? valueOutSideAlignment,
  bool? valueCancelFocusWhenClick,
  Border? valueOutsideBorder,

  /// Position Widget
  double? valueLeft,
  double? valueRight,
  double? valueTop,
  double? valueBottom,

  /// Blur
  double? valueSigmaX,
  double? valueSigmaY,
  Color? valueMaskColor,

  /// Material
  MaterialType? valueMaterialType,
  double? valueMaterialElevation,

  /// Other
  bool? valueScrollable,
  ScrollController? valueScrollController,
  SafeArea? valueSafeArea,
  bool? valueVisible,
  int? valueTabLength,
  RxInterface? valueObxListener,
  Color? valueOutsideBackgroundColor,
  BorderRadiusGeometry? valueOutsideBorderRadius,
  Object? valueHeroTag,
}) {
  return DefineMAddButtonModifier(
    iconSizeValue: iconSizeValue ?? this.iconSizeValue,
    imageColorValue: imageColorValue ?? this.imageColorValue,
    valueImageIcon: valueImageIcon ?? this.valueImageIcon,
    valueImageWidth: valueImageWidth ?? this.valueImageWidth,
    valueImageHeight: valueImageHeight ?? this.valueImageHeight,
    valueCloseButtonSize: valueCloseButtonSize ?? this.valueCloseButtonSize,
    valueMarginCloseTop: valueMarginCloseTop ?? this.valueMarginCloseTop,
    valueClickClose: valueClickClose ?? this.valueClickClose,
    valueMaxImagesLength: valueMaxImagesLength ?? this.valueMaxImagesLength,
    valueOnImage: valueOnImage ?? this.valueOnImage,

    /// The following properties are inherited from MGeneralModifier.
    /// Main.
    valueKey: valueKey ?? this.valueKey,

    /// Contents:
    valuePadding: valuePadding ?? this.valuePadding,
    valueMargin: valueMargin ?? this.valueMargin,
    valueOnTap: valueOnTap ?? this.valueOnTap,
    valueOnLongPress: valueOnLongPress ?? this.valueOnLongPress,
    valueOnLongPressMoveUpdate:
        valueOnLongPressMoveUpdate ?? this.valueOnLongPressMoveUpdate,
    valueOnLongPressUp: valueOnLongPressUp ?? this.valueOnLongPressUp,
    valueDragOutToStatusBar:
        valueDragOutToStatusBar ?? this.valueDragOutToStatusBar,
    valueBackgroundColor: valueBackgroundColor ?? this.valueBackgroundColor,
    valueBorderRadius: valueBorderRadius ?? this.valueBorderRadius,
    valueCenterAlign: valueCenterAlign ?? this.valueCenterAlign,
    valueWidth: valueWidth ?? this.valueWidth,
    valueHeight: valueHeight ?? this.valueHeight,
    valueShadow: valueShadow ?? this.valueShadow,
    valueTransform: valueTransform ?? this.valueTransform,
    valueConstraints: valueConstraints ?? this.valueConstraints,
    valueAspectRatio: valueAspectRatio ?? this.valueAspectRatio,
    valueFlex: valueFlex ?? this.valueFlex,
    valueOutSizeFlex: valueOutSizeFlex ?? this.valueOutSizeFlex,
    valueHelp: valueHelp ?? this.valueHelp,
    valueOpacity: valueOpacity ?? this.valueOpacity,
    valueRotate: valueRotate ?? this.valueRotate,
    valueScale: valueScale ?? this.valueScale,
    valueGradient: valueGradient ?? this.valueGradient,
    valueBorder: valueBorder ?? this.valueBorder,
    valueShape: valueShape ?? this.valueShape,
    valueBackgroundImage: valueBackgroundImage ?? this.valueBackgroundImage,
    valueBackgroundImageFit:
        valueBackgroundImageFit ?? this.valueBackgroundImageFit,
    valueGravity: valueGravity ?? this.valueGravity,
    valueGradientBorder: valueGradientBorder ?? this.valueGradientBorder,
    valueFullWidth: valueFullWidth ?? this.valueFullWidth,
    valueFullHeight: valueFullHeight ?? this.valueFullHeight,
    valueContainerAlignment:
        valueContainerAlignment ?? this.valueContainerAlignment,
    valueOutSideAlignment:
        valueOutSideAlignment ?? this.valueOutSideAlignment,
    valueCancelFocusWhenClick:
        valueCancelFocusWhenClick ?? this.valueCancelFocusWhenClick,
    valueOutsideBorder: valueOutsideBorder ?? valueOutsideBorder,

    /// Position Widget
    valueLeft: valueLeft ?? this.valueLeft,
    valueRight: valueRight ?? this.valueRight,
    valueTop: valueTop ?? this.valueTop,
    valueBottom: valueBottom ?? this.valueBottom,

    // Blur
    valueSigmaX: valueSigmaX ?? this.valueSigmaX,
    valueSigmaY: valueSigmaY ?? this.valueSigmaY,
    valueMaskColor: valueMaskColor ?? this.valueMaskColor,

    // Material
    valueMaterialType: valueMaterialType ?? this.valueMaterialType,
    valueMaterialElevation:
        valueMaterialElevation ?? this.valueMaterialElevation,

    // Other
    valueScrollable: valueScrollable ?? this.valueScrollable,
    valueScrollController:
        valueScrollController ?? this.valueScrollController,
    valueSafeArea: valueSafeArea ?? this.valueSafeArea,
    valueVisible: valueVisible ?? this.valueVisible,
    valueTabLength: valueTabLength ?? this.valueTabLength,
    valueObxListener: valueObxListener ?? this.valueObxListener,
    valueOutsideBackgroundColor:
        valueOutsideBackgroundColor ?? this.valueOutsideBackgroundColor,
    valueOutsideBorderRadius:
        valueOutsideBorderRadius ?? this.valueOutsideBorderRadius, valueHeroTag: valueHeroTag ?? this.valueHeroTag,
  );
}