pausePreview method Null safety

  1. @override
Future<void> pausePreview(
  1. int cameraId
)
override

Pause the active preview on the current frame for the selected camera.

Implementation

@override
Future<void> pausePreview(int cameraId) async {
  try {
    getCamera(cameraId).pause();
  } on html.DomException catch (e) {
    throw PlatformException(code: e.name, message: e.message);
  }
}