copyWith method

ShadowModel copyWith({
  1. RgbModel? color,
  2. double? offsetDX,
  3. double? offsetDY,
  4. double? spreadRadius,
  5. double? blurRadius,
})

Implementation

ShadowModel copyWith({
  RgbModel? color,
  double? offsetDX,
  double? offsetDY,
  double? spreadRadius,
  double? blurRadius,
}) {
  return ShadowModel(
    color: color ?? this.color,
    offsetDX: offsetDX ?? this.offsetDX,
    offsetDY: offsetDY ?? this.offsetDY,
    spreadRadius: spreadRadius ?? this.spreadRadius,
    blurRadius: blurRadius ?? this.blurRadius,
  );
}