NotificationMasterDesktop class

Desktop notification handler using local_notifier This class provides desktop-specific notification functionality for Linux, macOS, and Windows platforms.

Constructors

NotificationMasterDesktop()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

initialize({required String appName}) Future<void>
Initialize desktop notifications Must be called before showing any notifications on desktop platforms
isInitialized() bool
Check if desktop notifications are initialized
isSupported() bool
Check if desktop notifications are supported
showNotification({required String title, required String body, String? subtitle, bool silent = false, VoidCallback? onShow, VoidCallback? onClick, dynamic onClose(String)?}) Future<void>
Show a simple desktop notification
showNotificationWithActions({required String title, required String body, String? subtitle, required List<String> actions, bool silent = false, dynamic onActionClick(int)?, VoidCallback? onClick}) Future<void>
Show a desktop notification with action buttons