copyWith method
Implementation
BallStyle copyWith({double? size, Color? color, BallType? ballType, double? borderWidth, Color? borderColor}) {
return BallStyle(
size: size ?? this.size,
color: color ?? this.color,
ballType: ballType ?? this.ballType,
borderWidth: borderWidth ?? this.borderWidth,
borderColor: borderColor ?? this.borderColor);
}