PeriodicTimer class

Inheritance

Constructors

PeriodicTimer(CompleteTimerOptions options)

Properties

elapsedTime Duration
Elapsed time
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isRunning bool
Whether the CompleteTimer is currently running.
no setterinherited
options CompleteTimerOptions
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stopwatch Stopwatch
finalinherited
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 pairinherited
timer Timer
getter/setter pairinherited

Methods

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

Operators

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