LinuxNotificationDetails class

Configures notification details specific to Linux. The system may not support all features.

Constructors

LinuxNotificationDetails({LinuxNotificationIcon? icon, LinuxNotificationSound? sound, LinuxNotificationCategory? category, LinuxNotificationUrgency? urgency, LinuxNotificationTimeout timeout = const LinuxNotificationTimeout.systemDefault(), bool resident = false, bool suppressSound = false, bool transient = false, LinuxNotificationLocation? location, String? defaultActionName, List<LinuxNotificationCustomHint>? customHints, List<LinuxNotificationAction> actions = const <LinuxNotificationAction>[], bool actionKeyAsIconName = false})
Constructs an instance of LinuxNotificationDetails.
const

Properties

actionKeyAsIconName bool
If true, the server will attempt to interpret LinuxNotificationAction.key as a named icon. LinuxNotificationAction.label will be used to annotate the icon for accessibility purposes. The icon name should be compliant with the Freedesktop.org Icon Naming Specification https://specifications.freedesktop.org/icon-naming-spec/latest/
final
actions List<LinuxNotificationAction>
Specify a list of actions associated with this notifications.
final
category LinuxNotificationCategory?
Specifies the category for notification. This can be used by the notification server to filter or display the data in a certain way.
final
customHints List<LinuxNotificationCustomHint>?
Custom hints list to provide extra data to a notification server that the server may be able to make use of. Before using, make sure that the server supports this capability, please see LinuxServerCapabilities.
final
defaultActionName String?
Name of the default action (usually triggered by clicking the notification). The name can be anything, though implementations are free not to display it.
final
hashCode int
The hash code for this object.
no setterinherited
icon LinuxNotificationIcon?
Specifies the notification icon.
final
location LinuxNotificationLocation?
Specifies the location on the screen that the notification should point to.
final
resident bool
When set the server will not automatically remove the notification when an action has been invoked. The notification will remain resident in the server until it is explicitly removed by the user or by the sender. This option is likely only useful when the server has the LinuxServerCapabilities.persistence capability.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sound LinuxNotificationSound?
Specifies the notification sound. Typical value is ThemeLinuxSound('message')
final
suppressSound bool
Causes the server to suppress playing any sounds, if it has that ability. This is usually set when the client itself is going to play its own sound.
final
timeout LinuxNotificationTimeout
Sets the timeout for notification. To set the default time, pass LinuxNotificationTimeout.systemDefault value. To set the notification to never expire, pass LinuxNotificationTimeout.expiresNever.
final
transient bool
When set the server will treat the notification as transient and by-pass the server's LinuxServerCapabilities.persistence capability, if it should exist.
final
urgency LinuxNotificationUrgency?
Sets the urgency level for notification.
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