XNotification class

One system notification to post through XNotifications.show.

Constructors

XNotification({required String id, required String title, required String body, String? threadId, Map<String, String> data = const {}})
Binds the notification's identity to the text the OS displays.

Properties

body → String
Body text below title.
final
data → Map<String, String>
Delivered verbatim to the tap event when the user clicks the notification.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable identifier; posting another notification with the same id replaces the existing one (typical use: id = chat/thread id so the latest preview from a chat replaces the older toast).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
threadId → String?
Groups notifications in the OS UI (macOS Notification Center collapses entries sharing a threadIdentifier; Windows groups toasts by it).
final
title → String
Headline the OS displays.
final

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