copyWith method

BallStyle copyWith({
  1. double? size,
  2. Color? color,
  3. BallType? ballType,
  4. double? borderWidth,
  5. Color? borderColor,
})

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);
}