copyWith method

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

Implementation

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