AppNotifications class abstract final

A unified service for scheduling and presenting 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

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

customNotifier ↔ Future<void> Function(AppNotificationItem notification)?
Pluggable notifier handler.
getter/setter pair
history → List<AppNotificationItem>
Returns the notification history.
no setter
onNotificationTapped ↔ void Function(String? payload)?
Pluggable notification tap callback.
getter/setter pair

Static Methods

clearHistory() → void
Clears notification history.
schedule({int? id, required String title, required String body, required DateTime at, String? payload}) → Future<void>
Schedules a notification to be presented at at.
show({int? id, required String title, required String body, String? payload}) → Future<void>
Shows an immediate notification.