MethodChannelXNotifications class

Production XNotifications, over the ux/notifications channels.

Implemented types

Constructors

MethodChannelXNotifications()
Subscribes to the native event channel where one is registered.

Properties

authorized → ValueEmitter<bool?>
null = OS hasn't been asked; true/false after the user has answered an authorization prompt.
final
hashCode → int
The hash code for this object.
no setterinherited
onTap → Stream<Map<String, String>>
Tap events. Payload is the data Map supplied to show.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelAll() → Future<void>
Withdraws every notification this app has posted.
override
cancelByThread(String threadId) → Future<void>
Withdraws every posted notification sharing threadId.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() → Future<bool>
Prompts for notification authorization and reports whether it was granted.
override
show(XNotification n) → Future<void>
Posts (or replaces) a system notification. Same XNotification.id replaces any prior notification with that id. XNotification.threadId groups multiple notifications in the OS's notification UI.
override
toString() → String
A string representation of this object.
inherited

Operators

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