resetCamera method

Future<bool> resetCamera()

重新预览相机 Reset the camera

Implementation

Future<bool> resetCamera() async {
  if (previousCamera == null) return false;
  await stopPreview();
  final options = await startPreview(previousCamera!);
  return options != null;
}