copyWith method

AnyBackground copyWith({
  1. AnyShapeBase? shapeBase,
  2. Color? color,
  3. Gradient? gradient,
  4. DecorationImage? image,
  5. BlendMode? blendMode,
  6. bool? isAntiAlias,
})

Implementation

AnyBackground copyWith({
  AnyShapeBase? shapeBase,
  Color? color,
  Gradient? gradient,
  DecorationImage? image,
  BlendMode? blendMode,
  bool? isAntiAlias,
}) {
  return AnyBackground(
    shapeBase: shapeBase ?? this.shapeBase,
    color: color ?? this.color,
    gradient: gradient ?? this.gradient,
    image: image ?? this.image,
    blendMode: blendMode ?? this.blendMode,
    isAntiAlias: isAntiAlias ?? this.isAntiAlias,
  );
}