backgroundNotificationStream top-level property

StreamController<String?> backgroundNotificationStream
final

This file contains handlers for received local notifications.

Unlike other services and their functions, these functions are not part of a class/mixin. This is because they need to be entry points for the background isolate. This is why they are annotated with @pragma('vm:entry-point'). A stream that emits the path to redirect to if a local notification was clicked on while the app was in the background or foreground.

This stream is listened to by the notificationRedirectProvider.

Implementation

/// A stream that emits the path to redirect to if a local notification was
/// clicked on while the app was in the background or foreground.
///
/// This stream is listened to by the [notificationRedirectProvider].
final StreamController<String?> backgroundNotificationStream =
    StreamController.broadcast();