CountdownModel class
A countdown model built on top of TimerModel.
This is a convenience bubble for the legacy countdown behavior (previously
exposed as CountdownComponent).
- Inheritance
-
- Object
- Model
- ViewComponent
- CountdownModel
Constructors
- CountdownModel({required Duration duration, String message = 'Continuing in', Duration interval = const Duration(seconds: 1)})
Properties
Methods
-
init(
) → Cmd? -
Returns an optional command to execute on program startup.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Msg msg) → (CountdownModel, Cmd?) -
Updates the component state in response to a message.
override
-
view(
) → String -
Renders the current model state for display.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited