CameraPreview constructor

const CameraPreview(
  1. CameraController controller, {
  2. Key? key,
  3. Widget? child,
})

Creates a preview widget for the given camera controller.

Implementation

const CameraPreview(this.controller, {super.key, this.child});