eventChannel property

Stream<NotificationEvent> eventChannel
final

Implementation

final eventChannel = EventChannel("mobilistenNotificationEvents")
    .receiveBroadcastStream()
    .map((event) => NotificationEvent(
        NotificationAction.from(event["eventName"] as String),
        _getNotificationPayload(event["payload"] as Map)));