Notification Spec
data class NotificationSpec(val message: String, val severity: NotificationSeverity = NotificationSeverity.INFO, val dismissAfter: Duration? = defaultDismissAfter(severity))(source)
Authoring shape for a notification handed to Notifications.show.
Constructors
Link copied to clipboard
constructor(message: String, severity: NotificationSeverity = NotificationSeverity.INFO, dismissAfter: Duration? = defaultDismissAfter(severity))
Properties
Link copied to clipboard
how long the card stays visible before auto-dismissal. null means manual only — the card stays until the user clicks it. When omitted, defaults to defaultDismissAfter(severity) (INFO and WARNING 5 s, ERROR 8 s per scenario workflow §4 surface 5).
Link copied to clipboard
color / icon coding per NotificationSeverity. Defaults to NotificationSeverity.INFO.