HotReloadStatusMsg class
Message sent when the hot reload system changes state.
Models can pattern-match on this in Model.update to display reload status in the TUI view. The message is dispatched through the normal message queue and is never dropped by input coalescing.
Example
@override
(Model, Cmd?) update(Msg msg) {
return switch (msg) {
HotReloadStatusMsg(status: HotReloadStatus.succeeded) => (
this,
null,
),
_ => (this, null),
};
}
Constructors
- HotReloadStatusMsg(HotReloadStatus status, {String? detail})
-
Creates a hot reload status message.
const
Properties
- detail → String?
-
Optional human-readable detail about the status change.
final
- dropWhenInputQueued → bool
-
Whether this message can be dropped when fresher user input is queued.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → HotReloadStatus
-
The current hot reload status.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited