CameraPreviewOverlay constructor

const CameraPreviewOverlay({
  1. Key? key,
  2. required MediaStream stream,
  3. required bool isVideo,
  4. required VoidCallback onCapture,
  5. VoidCallback? onStopRecording,
  6. required VoidCallback onCancel,
  7. bool isRecording = false,
  8. Duration? recordingDuration,
})

Implementation

const CameraPreviewOverlay({
  Key? key,
  required this.stream,
  required this.isVideo,
  required this.onCapture,
  this.onStopRecording,
  required this.onCancel,
  this.isRecording = false,
  this.recordingDuration,
}) : super(key: key);