CyberCamera constructor

const CyberCamera({
  1. Key? key,
  2. required OnCaptureImage onCapture,
  3. OnCameraError? onError,
  4. double? height = 300,
  5. double borderRadius = 12.0,
  6. bool enableCompression = true,
  7. int compressionQuality = 85,
  8. int? maxWidth = 1920,
  9. int? maxHeight = 1920,
  10. bool showTapOverlay = true,
  11. String? hintText,
  12. CameraLensDirection defaultCamera = CameraLensDirection.back,
})

Implementation

const CyberCamera({
  super.key,
  required this.onCapture,
  this.onError,
  this.height = 300,
  this.borderRadius = 12.0,
  this.enableCompression = true,
  this.compressionQuality = 85,
  this.maxWidth = 1920,
  this.maxHeight = 1920,
  this.showTapOverlay = true,
  this.hintText,
  this.defaultCamera = CameraLensDirection.back,
});