recordDetectionCancel method

void recordDetectionCancel(
  1. PointerUpEvent event
)

Implementation

void recordDetectionCancel(PointerUpEvent event) {
  _recordDetectTimer?.cancel();
  if (isShootingButtonAnimate) {
    safeSetState(() {
      isShootingButtonAnimate = false;
    });
  }
  if (controller.value.isRecordingVideo) {
    _lastShootingButtonPressedPosition = null;
    safeSetState(() {});
    stopRecordingVideo();
  }
}