CompleteTimer class abstract

A timer that can be configured to fire once or repeatedly with ability start, stop, resume and cancel

Implementers

Constructors

CompleteTimer({required Duration duration, required Callback callback, bool periodic = false, bool autoStart = true})
Creates a new timer
factory

Properties

elapsedTime → Duration
Elapsed time
no setter
hashCode → int
The hash code for this object.
no setterinherited
isRunning → bool
Whether the CompleteTimer is currently running.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
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.
no setter

Methods

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

Operators

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