AlertLine class

Renders an AlertMessage as a pinned, log-styled line: an alert marker and timestamp aligned with the log entries' level/time columns, followed by the message (with its code emphasised) and C Copy / Esc Dismiss hints.

The message is left-truncated (keeping the trailing code) when it doesn't fit, so the line never wraps. Place it where it should appear - e.g. pinned at the bottom of a log panel.

Constructors

AlertLine({Key? key, required AlertMessage alert, required VoidCallback onCopy, required VoidCallback onDismiss, DateTime? time, bool copied = false})
const

Properties

alert AlertMessage
final
copied bool
When true, the copy hint shows a ✓ Copied confirmation instead of C Copy.
final
hashCode int
The hash code for this object.
no setterinherited
key → Key?
finalinherited
onCopy → VoidCallback
Invoked when the copy hint is clicked.
final
onDismiss → VoidCallback
Invoked when the dismiss hint is clicked.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
time DateTime?
When the alert was raised; rendered in the same column as log timestamps. Omitted when null.
final

Methods

build(BuildContext context) → Component
Describes the part of the user interface represented by this component.
createElement() → StatelessElement
inherited
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