cancelTimer method

void cancelTimer()

Implementation

void cancelTimer() {
  if (widget.controller.draggingTimer != null) {
    if (widget.controller.draggingTimer!.isActive) {
      widget.controller.draggingTimer!.cancel();
      widget.controller.draggingTimer = null;
    }
  }
}