events method
Live event stream for handle: device-orientation changes,
session errors, interrupted/resumed lifecycle pings. The
controller subscribes during initialize and unsubscribes on
disposeInstance.
Implementation
@override
Stream<XCameraEvent> events(int handle) {
return _rawEvents
.map((e) => (e as Map).cast<Object?, Object?>())
.where((m) => (m['handle'] as num).toInt() == handle)
.map(_decodeEvent);
}