onCameraResolutionChanged method Null safety

  1. @override
Stream<CameraResolutionChangedEvent> onCameraResolutionChanged(
  1. int cameraId
)
override

Emits an empty stream as there is no event corresponding to a change in the camera resolution on the web.

In order to change the camera resolution a new camera with appropriate CameraOptions.video constraints has to be created and initialized.

Implementation

@override
Stream<CameraResolutionChangedEvent> onCameraResolutionChanged(int cameraId) {
  return const Stream<CameraResolutionChangedEvent>.empty();
}