NotificationService class abstract

Vendor seam for delivering local notifications.

NotificationsBloc depends on this interface, not on a plugin — testable with a fake. The default implementation is LocalNotificationService (backed by flutter_local_notifications).

Implementers

Constructors

NotificationService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taps Stream<NotificationTap>
Stream of taps on delivered notifications.
no setter

Methods

cancel(int id) Future<void>
Cancel a pending/shown notification by id.
cancelAll() Future<void>
Cancel everything.
dispose() Future<void>
Release resources.
initialize() Future<void>
Platform initialization (channels, tap handler wiring).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
schedule(JuiceNotification notification, DateTime when) Future<void>
Post a notification at when.
show(JuiceNotification notification) Future<void>
Post a notification now.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited