cameraEventStreamController property

  1. @visibleForTesting
StreamController<CameraEvent> cameraEventStreamController
final

The controller that broadcasts events coming from handleCameraMethodCall

It is a broadcast because multiple controllers will connect to different stream views of this Controller. This is only exposed for test purposes. It shouldn't be used by clients of the plugin as it may break or change at any time.

Implementation

@visibleForTesting
final StreamController<CameraEvent> cameraEventStreamController =
    StreamController<CameraEvent>.broadcast();