LinuxNotificationDetails class

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


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.


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 Icon Naming Specification
actions List<LinuxNotificationAction>
Specify a list of actions associated with this notifications.
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.
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.
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.
hashCode int
The hash code for this object.
no setterinherited
icon LinuxNotificationIcon?
Specifies the notification icon.
location LinuxNotificationLocation?
Specifies the location on the screen that the notification should point to.
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.
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sound LinuxNotificationSound?
Specifies the notification sound. Typical value is ThemeLinuxSound('message')
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.
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.
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.
urgency LinuxNotificationUrgency?
Sets the urgency level for notification.


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


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