copyWith method

ShapeDecoration copyWith({
  1. Color? color,
  2. DecorationImage? image,
  3. Gradient? gradient,
  4. List<BoxShadow>? shadows,
  5. ShapeBorder? shape,
})

Implementation

ShapeDecoration copyWith({
  Color? color,
  DecorationImage? image,
  Gradient? gradient,
  List<BoxShadow>? shadows,
  ShapeBorder? shape,
}) {
  return ShapeDecoration(
    color: color ?? this.color,
    image: image ?? this.image,
    gradient: gradient ?? this.gradient,
    shadows: shadows ?? this.shadows,
    shape: shape ?? this.shape,
  );
}