StopwatchModel class final

Elapsed-time stopwatch bubble. Driven by TickMsg.

Inheritance

Constructors

StopwatchModel({Duration elapsed = Duration.zero, bool running = false, DateTime? lastTick, Object? id})

Properties

elapsed Duration
final
hashCode int
The hash code for this object.
no setterinherited
id Object?
final
lastTick DateTime?
final
running bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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