XdgNotificationPortal class

Portal to create notifications.

Constructors

XdgNotificationPortal(DBusRemoteObject _object)

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

addNotification(String id, {String? title, String? body, XdgNotificationIcon? icon, XdgNotificationPriority? priority, String? defaultAction, List<XdgNotificationButton> buttons = const []}) Future<void>
Send a notification. id can be used later to withdraw the notification with removeNotification. If id is reused without withdrawing, the existing notification is replaced.
getVersion() Future<int>
Get the version of this portal.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeNotification(String id) Future<void>
Withdraw a notification created with addNotification.
toString() String
A string representation of this object.
inherited

Operators

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