switchCamera method

Future<bool> switchCamera(
  1. CameraInfo camera
)
inherited

切换摄像头 Switch Camera

Implementation

Future<bool> switchCamera(CameraInfo camera) async {
  assert(_isInitialize, 'Call initialize first');
  await stopPreview();
  final options = await startPreview(camera);
  return options != null;
}