onCameraClosing method

  1. @override
Stream<CameraClosingEvent> onCameraClosing(
  1. int cameraId
)

The camera started to close.

Implementation

@override
Stream<CameraClosingEvent> onCameraClosing(int cameraId) {
  return _cameraEvents(cameraId).whereType<CameraClosingEvent>();
}