LinuxNotificationDetails class Null safety

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})
Constructs an instance of LinuxNotificationDetails.
const

Properties

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, 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. [...]
read-only, inherited
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.
read-only, inherited
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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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