CameraView constructor

const CameraView({
  1. Key? key,
  2. required CustomPaint? customPaint,
  3. required dynamic onImage(
    1. InputImage inputImage
    ),
  4. dynamic onCameraFeedReady(
    1. CameraController controller
    )?,
  5. VoidCallback? onDetectorViewModeChanged,
  6. dynamic onCameraLensDirectionChanged(
    1. CameraLensDirection direction
    )?,
  7. List<Map<String, dynamic>>? recentScans,
  8. CameraLensDirection initialCameraLensDirection = CameraLensDirection.back,
  9. dynamic onRegisterCallbacks(
    1. Function startCallback,
    2. Function stopCallback
    )?,
})

Implementation

const CameraView({
  super.key,
  required this.customPaint,
  required this.onImage,
  this.onCameraFeedReady,
  this.onDetectorViewModeChanged,
  this.onCameraLensDirectionChanged,
  this.recentScans,
  this.initialCameraLensDirection = CameraLensDirection.back,
  this.onRegisterCallbacks,
});