copyWith method

AuroraDecoration copyWith({
  1. Color? color,
  2. BoxBorder? border,
  3. BorderRadiusGeometry? borderRadius,
  4. List<BoxShadow>? boxShadow,
  5. List<Gradient>? gradients,
  6. BlendMode? backgroundBlendMode,
  7. BoxShape? shape,
})

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

Implementation

AuroraDecoration copyWith({
  Color? color,
  BoxBorder? border,
  BorderRadiusGeometry? borderRadius,
  List<BoxShadow>? boxShadow,
  List<Gradient>? gradients,
  BlendMode? backgroundBlendMode,
  BoxShape? shape,
}) {
  return AuroraDecoration(
    color: color ?? this.color,
    border: border ?? this.border,
    borderRadius: borderRadius ?? this.borderRadius,
    boxShadow: boxShadow ?? this.boxShadow,
    gradients: gradients ?? this.gradients,
    backgroundBlendMode: backgroundBlendMode ?? this.backgroundBlendMode,
    shape: shape ?? this.shape,
  );
}