NotificationDisplayService class
Service for displaying local notifications Handles data-only FCM messages by displaying them as local notifications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelAllNotifications(
) → Future< void> - Cancel all notifications
-
cancelNotification(
int id) → Future< void> - Cancel a specific notification
-
displayNotification(
Map< String, dynamic> data) → Future<void> - Display a notification from FCM data payload
-
initialize(
{dynamic onNotificationTapped(NotificationResponse)?}) → Future< void> - Initialize the notification display service
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → NotificationDisplayService
-
no setter