start method

Future<CameraController> start({
  1. bool reuse = true,
})

Implementation

Future<CameraController> start({bool reuse = true}) async {
  if (reuse && controller != null && controller!.value.isInitialized) {
    return controller!;
  }
  controller = await newController;
  if (controller == null) {
    throw Exception("Failed to initialize camera");
  }
  await controller!.initialize();
  return controller!;
}