camera property

DVCameraController get camera

The camera of a DVBox.camera box. Throws for any other box.

Implementation

DVCameraController get camera {
  final Widget? child = _child;
  if (child is DVCameraView) return child.controller;
  throw StateError('Only DVBox.camera has a camera.');
}