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, {Key? key, this.child}) : super(key: key);