CameraView constructor

const CameraView({
  1. Key? key,
  2. required CustomPaint? customPaint,
  3. required dynamic onImage(
    1. InputImage inputImage
    ),
  4. VoidCallback? onCameraFeedReady,
  5. VoidCallback? onDetectorViewModeChanged,
  6. dynamic onCameraLensDirectionChanged(
    1. CameraLensDirection direction
    )?,
  7. CameraLensDirection initialCameraLensDirection = CameraLensDirection.back,
  8. required CameraController? cameraController,
  9. required List<CameraDescription> cameras,
})

Implementation

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