StopwatchModel class final
Elapsed-time stopwatch bubble. Driven by TickMsg.
Constructors
- StopwatchModel({Duration elapsed = Duration.zero, bool running = false, DateTime? lastTick, Object? id})
Properties
Methods
-
copyWith(
{Duration? elapsed, bool? running, DateTime? lastTick, Object? id, bool clearLastTick = false}) → StopwatchModel -
init(
) → Cmd? -
Optional command to run after the model is first installed.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → StopwatchModel -
start(
) → StopwatchModel -
stop(
) → StopwatchModel -
toString(
) → String -
A string representation of this object.
inherited
-
update(
Msg msg) → (Model, Cmd?) -
Handle the next message; return the new model and an optional follow-up command.
override
-
view(
) → View -
Render the full program state.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited