copyWith method

ViewDecoration copyWith({
  1. ViewClickEffect? clickEffect,
  2. ImageFilter? backdropFilter,
  3. BlendMode? backdropMode,
  4. Color? borderColor,
  5. ValueState<Color>? borderColorState,
  6. double? borderSize,
  7. ValueState<double>? borderSizeState,
  8. double? borderHorizontal,
  9. dynamic borderVertical,
  10. ValueState<double>? borderHorizontalState,
  11. dynamic borderVerticalState,
  12. double? borderTop,
  13. dynamic borderBottom,
  14. dynamic borderStart,
  15. dynamic borderEnd,
  16. ValueState<double>? borderTopState,
  17. dynamic borderBottomState,
  18. ValueState<double>? borderStartState,
  19. dynamic borderEndState,
  20. double? borderStrokeAlign,
  21. double? borderRadius,
  22. ValueState<double>? borderRadiusState,
  23. double? borderRadiusBL,
  24. dynamic borderRadiusBR,
  25. dynamic borderRadiusTL,
  26. dynamic borderRadiusTR,
  27. ValueState<double>? borderRadiusBLState,
  28. dynamic borderRadiusBRState,
  29. ValueState<double>? borderRadiusTLState,
  30. dynamic borderRadiusTRState,
  31. double? margin,
  32. double? marginHorizontal,
  33. dynamic marginVertical,
  34. double? marginTop,
  35. dynamic marginBottom,
  36. dynamic marginStart,
  37. dynamic marginEnd,
  38. EdgeInsets? marginCustom,
  39. double? opacity,
  40. ValueState<double>? opacityState,
  41. bool? opacityAlwaysIncludeSemantics,
  42. double? padding,
  43. double? paddingHorizontal,
  44. dynamic paddingVertical,
  45. double? paddingTop,
  46. dynamic paddingBottom,
  47. dynamic paddingStart,
  48. dynamic paddingEnd,
  49. EdgeInsets? paddingCustom,
  50. double? shadow,
  51. double? shadowBlurRadius,
  52. dynamic shadowSpreadRadius,
  53. double? shadowHorizontal,
  54. dynamic shadowVertical,
  55. double? shadowStart,
  56. dynamic shadowEnd,
  57. dynamic shadowTop,
  58. dynamic shadowBottom,
})

Implementation

ViewDecoration copyWith({
  ViewClickEffect? clickEffect,

  /// BACKDROP PROPERTIES
  ImageFilter? backdropFilter,
  BlendMode? backdropMode,

  /// BORDER PROPERTIES
  Color? borderColor,
  ValueState<Color>? borderColorState,
  double? borderSize,
  ValueState<double>? borderSizeState,
  double? borderHorizontal,
  borderVertical,
  ValueState<double>? borderHorizontalState,
  borderVerticalState,
  double? borderTop,
  borderBottom,
  borderStart,
  borderEnd,
  ValueState<double>? borderTopState,
  borderBottomState,
  ValueState<double>? borderStartState,
  borderEndState,
  double? borderStrokeAlign,

  /// BORDER RADIUS PROPERTIES
  double? borderRadius,
  ValueState<double>? borderRadiusState,
  double? borderRadiusBL,
  borderRadiusBR,
  borderRadiusTL,
  borderRadiusTR,
  ValueState<double>? borderRadiusBLState,
  borderRadiusBRState,
  ValueState<double>? borderRadiusTLState,
  borderRadiusTRState,

  /// MARGIN PROPERTIES
  double? margin,
  double? marginHorizontal,
  marginVertical,
  double? marginTop,
  marginBottom,
  marginStart,
  marginEnd,
  EdgeInsets? marginCustom,

  /// OPACITY PROPERTIES
  double? opacity,
  ValueState<double>? opacityState,
  bool? opacityAlwaysIncludeSemantics,

  /// PADDING PROPERTIES
  double? padding,
  double? paddingHorizontal,
  paddingVertical,
  double? paddingTop,
  paddingBottom,
  paddingStart,
  paddingEnd,
  EdgeInsets? paddingCustom,

  /// SHADOW PROPERTIES
  double? shadow,
  double? shadowBlurRadius,
  shadowSpreadRadius,
  double? shadowHorizontal,
  shadowVertical,
  double? shadowStart,
  shadowEnd,
  shadowTop,
  shadowBottom,
}) {
  return ViewDecoration(
    clickEffect: clickEffect ?? this.clickEffect,
    backdropFilter: backdropFilter ?? this.backdropFilter,
    backdropMode: backdropMode ?? this.backdropMode,
    borderColor: borderColor ?? this.borderColor,
    borderColorState: borderColorState ?? this.borderColorState,
    borderSize: borderSize ?? this.borderSize,
    borderSizeState: borderSizeState ?? this.borderSizeState,
    borderHorizontal: borderHorizontal ?? this.borderHorizontal,
    borderVertical: borderVertical ?? this.borderVertical,
    borderHorizontalState:
        borderHorizontalState ?? this.borderHorizontalState,
    borderVerticalState: borderVerticalState ?? this.borderVerticalState,
    borderTop: borderTop ?? this.borderTop,
    borderBottom: borderBottom ?? this.borderBottom,
    borderStart: borderStart ?? this.borderStart,
    borderEnd: borderEnd ?? this.borderEnd,
    borderTopState: borderTopState ?? this.borderTopState,
    borderBottomState: borderBottomState ?? this.borderBottomState,
    borderStartState: borderStartState ?? this.borderStartState,
    borderEndState: borderEndState ?? this.borderEndState,
    borderStrokeAlign: borderStrokeAlign ?? this.borderStrokeAlign,
    borderRadius: borderRadius ?? this.borderRadius,
    borderRadiusState: borderRadiusState ?? this.borderRadiusState,
    borderRadiusBL: borderRadiusBL ?? this.borderRadiusBL,
    borderRadiusBR: borderRadiusBR ?? this.borderRadiusBR,
    borderRadiusTL: borderRadiusTL ?? this.borderRadiusTL,
    borderRadiusTR: borderRadiusTR ?? this.borderRadiusTR,
    borderRadiusBLState: borderRadiusBLState ?? this.borderRadiusBLState,
    borderRadiusBRState: borderRadiusBRState ?? this.borderRadiusBRState,
    borderRadiusTLState: borderRadiusTLState ?? this.borderRadiusTLState,
    borderRadiusTRState: borderRadiusTRState ?? this.borderRadiusTRState,
    margin: margin ?? this.margin,
    marginHorizontal: marginHorizontal ?? this.marginHorizontal,
    marginVertical: marginVertical ?? this.marginVertical,
    marginTop: marginTop ?? this.marginTop,
    marginBottom: marginBottom ?? this.marginBottom,
    marginStart: marginStart ?? this.marginStart,
    marginEnd: marginEnd ?? this.marginEnd,
    marginCustom: marginCustom ?? this.marginCustom,
    opacity: opacity ?? this.opacity,
    opacityState: opacityState ?? this.opacityState,
    opacityAlwaysIncludeSemantics:
        opacityAlwaysIncludeSemantics ?? this.opacityAlwaysIncludeSemantics,
    padding: padding ?? this.padding,
    paddingHorizontal: paddingHorizontal ?? this.paddingHorizontal,
    paddingVertical: paddingVertical ?? this.paddingVertical,
    paddingTop: paddingTop ?? this.paddingTop,
    paddingBottom: paddingBottom ?? this.paddingBottom,
    paddingStart: paddingStart ?? this.paddingStart,
    paddingEnd: paddingEnd ?? this.paddingEnd,
    paddingCustom: paddingCustom ?? this.paddingCustom,
    shadow: shadow ?? this.shadow,
    shadowBlurRadius: shadowBlurRadius ?? this.shadowBlurRadius,
    shadowSpreadRadius: shadowSpreadRadius ?? this.shadowSpreadRadius,
    shadowHorizontal: shadowHorizontal ?? this.shadowHorizontal,
    shadowVertical: shadowVertical ?? this.shadowVertical,
    shadowStart: shadowStart ?? this.shadowStart,
    shadowEnd: shadowEnd ?? this.shadowEnd,
    shadowTop: shadowTop ?? this.shadowTop,
    shadowBottom: shadowBottom ?? this.shadowBottom,
  );
}