WindowsNotification class

Constructors

WindowsNotification({required String? applicationId})

Properties

applicationId String?
Creates and initializes a new instance of the ToastNotification, bound to a specified app, usually another app in the same package.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearNotificationHistory() Future<void>
Removes all notifications sent by this app from action center.
init() Future<void>
initNotificationCallBack(OnTapNotification? callback) Future<void>
onActivate and onDismissed events of your sending notifications
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeNotificationGroup(String group) Future<void>
Removes a group of toast notifications, identified by the specified group label, from action center.
removeNotificationId(String id, String group) Future<void>
Removes an individual toast, with the specified tag and group label, from action center.
showNotificationCustomTemplate(NotificationMessage notification, String template) Future<void>
To send notifications with custom templates you must create NotificationMessage with fromCustomTemplate constructor
showNotificationPluginTemplate(NotificationMessage templaate) Future<void>
To send notifications with plugin templates you must create NotificationMessage with fromPluginTemplate constructor
toString() String
A string representation of this object.
inherited

Operators

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