CyberCamera constructor
const
CyberCamera({
- Key? key,
- required OnCaptureImage onCapture,
- OnCameraError? onError,
- double? height = 300,
- double borderRadius = 12.0,
- bool enableCompression = true,
- int compressionQuality = 85,
- int? maxWidth = 1920,
- int? maxHeight = 1920,
- bool showTapOverlay = true,
- String? hintText,
- 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,
});