A single notification shown in the Omni.UI toaster.
Built via Omni.UI.notify/2 or Omni.UI.notify/3. The id is generated on
construction and used by the stream + FIFO-cap bookkeeping.
Summary
Types
Notification severity.
A notification struct with id, level, message, and auto-dismiss timeout.
Functions
Builds a notification.
Types
@type level() :: :info | :success | :warning | :error
Notification severity.
@type t() :: %Omni.UI.Notification{ id: integer(), level: level(), message: String.t(), timeout: non_neg_integer() }
A notification struct with id, level, message, and auto-dismiss timeout.