onConferenceEnded method
Returns a Stream of the NotificationServiceEventNames.conferenceEnded events. By subscribing to the returned stream you will be notified whenever a conference ends.
Implementation
Stream<Event<NotificationServiceEventNames, ConferenceEndedNotificationData>>
onConferenceEnded() {
return _eventStream.addListener(
[NotificationServiceEventNames.conferenceEnded.value]).map((map) {
final event = map as Map<Object?, Object?>;
final key = NotificationServiceEventNames.valueOf(event["key"] as String);
final data = event["body"] as Map<Object?, Object?>;
return Event(key, ConferenceEndedNotificationMapper.fromMap(data));
});
}