getSessionNumber static method
Implementation
static Stream<int> getSessionNumber() async* {
if (!isWeb) {
_channel.invokeMethod('initSessionNumListener');
_sessionNumEventChannel ??= const EventChannel('MetrixSessionNumEvent');
yield* _sessionNumEventChannel?.receiveBroadcastStream().asyncMap<int>((sessionNum) => sessionNum) ?? Stream.empty();
} else {
yield* Stream.empty();
}
}