setCaptureMode static method

Future<void> setCaptureMode(
  1. CaptureMode captureMode
)

change capture mode between CaptureMode.photo and CaptureMode.video

Implementation

static Future<void> setCaptureMode(CaptureMode captureMode) {
  return CameraInterface().setCaptureMode(captureMode.name.toUpperCase());
}