copyWith method

DragballPosition copyWith({
  1. double? top,
  2. bool? isRight,
  3. BallState? ballState,
})

Implementation

DragballPosition copyWith({
  double? top,
  bool? isRight,
  BallState? ballState,
}) =>
    DragballPosition(
      top: top ?? this.top,
      isRight: isRight ?? this.isRight,
      ballState: ballState ?? this.ballState,
    );