copyWith method

NeoPopTiltedButtonDecoration copyWith({
  1. Color? color,
  2. Color? disabledColor,
  3. Color? disabledPlunkColor,
  4. Color? shadowColor,
  5. double? shimmerWidth,
  6. Color? shimmerColor,
  7. Duration? shimmerDuration,
  8. Duration? shimmerDelay,
  9. bool? showShimmer,
  10. Color? shimmerPlunkColor,
  11. Border? border,
})

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

NeoPopTiltedButtonDecoration copyWith({
  Color? color,
  Color? disabledColor,
  Color? disabledPlunkColor,
  Color? shadowColor,
  double? shimmerWidth,
  Color? shimmerColor,
  Duration? shimmerDuration,
  Duration? shimmerDelay,
  bool? showShimmer,
  Color? shimmerPlunkColor,
  Border? border,
}) {
  return NeoPopTiltedButtonDecoration(
    color: color ?? this.color,
    disabledColor: disabledColor ?? this.disabledColor,
    disabledPlunkColor: disabledPlunkColor ?? this.disabledPlunkColor,
    shadowColor: shadowColor ?? this.shadowColor,
    shimmerWidth: shimmerWidth ?? this.shimmerWidth,
    shimmerColor: shimmerColor ?? this.shimmerColor,
    shimmerDuration: shimmerDuration ?? this.shimmerDuration,
    shimmerDelay: shimmerDelay ?? this.shimmerDelay,
    showShimmer: showShimmer ?? this.showShimmer,
    shimmerPlunkColor: shimmerPlunkColor ?? this.shimmerPlunkColor,
    border: border ?? this.border,
  );
}