MethodChannelXNotifications class
Production XNotifications, over the ux/notifications channels.
- Implemented types
Constructors
- MethodChannelXNotifications()
- Subscribes to the native event channel where one is registered.
Properties
-
null= OS hasn't been asked;true/falseafter 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
dataMap 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