NotificationService class
Service for managing local notifications
Constructors
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
-
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 Methods
-
areNotificationsEnabled(
) → Future< bool> - Check if notifications are enabled
-
cancel(
int id) → Future< void> - Cancel a notification
-
cancelAll(
) → Future< void> - Cancel all notifications
-
getPendingNotifications(
) → Future< List< PendingNotificationRequest> > - Get pending notifications
-
initialize(
RunnerBackgroundConfig config) → Future< void> - Initialize the notification service
-
showNotification(
{required String title, required String body, String? payload, int? id}) → Future< void> - Show a notification
-
showScheduledNotification(
{required String title, required String body, required DateTime scheduledDate, String? payload, int? id}) → Future< void> - Show a scheduled notification