onTap property

GestureTapCallback? get onTap

Implementation

GestureTapCallback? get onTap {
  if (enableTapRecording) {
    if (innerController?.value.isRecordingVideo ?? false) {
      return stopRecordingVideo;
    }
    return () {
      startRecordingVideo();
      setState(() {
        isShootingButtonAnimate = true;
      });
    };
  }
  if (!onlyEnableRecording) {
    return takePicture;
  }
  return null;
}