CameraPreview constructor

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

Creates a preview widget for the given camera controller.

Implementation

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