copyWith method
ShapeDecoration
copyWith({
- Color? color,
- DecorationImage? image,
- Gradient? gradient,
- List<
BoxShadow> ? shadows, - 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,
);
}