ResumableTimer class

Implemented types
Implementers

Constructors

ResumableTimer(CompleteTimerOptions options)

Properties

elapsedTime Duration
Elapsed time
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isRunning bool
Whether the CompleteTimer is currently running.
no setteroverride
options CompleteTimerOptions
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopwatch Stopwatch
final
tick int
The value starts at zero and is incremented each time a timer event occurs, so each callback will see a larger value than the previous one.
getter/setter pairoverride-getter
timer Timer
getter/setter pair

Methods

cancel() → void
Cancel the timer.
override
initTimer(Duration duration) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resume() → void
start() → void
Start the timer, you don't need to call it if autoStart sets true.
override
stop() → void
Stop the timer.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited