events property
Stream<CameraSessionEvent>
get
events
Typed session events (started / stopped / error / interruption) for this session. Mirrors vision-camera's session listeners.
Events with a type index unknown to this plugin version (native/plugin version skew) are skipped rather than crashing the stream.
Implementation
Stream<CameraSessionEvent> get events => NitroCamera.instance.eventStream.where(CameraSessionEvent.isKnownType).map(CameraSessionEvent.fromNative).where((e) => e.textureId == _textureId || e.textureId == 0);