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