Metronome class

Inheritance

Constructors

Metronome.new(Duration interval)

Properties

hashCode int
The hash code for this object.
no setterinherited
interval Duration
finalinherited
isRunning bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addTicker(Ticker ticker) → void
finish() Future<void>
Cleanup after handled
inherited
handle() Future<void>
Handling run loop
inherited
idle() Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(dynamic error, dynamic stacktrace, Ticker ticker) Future<void>
process() Future<bool>
Do the job
override
removeTicker(Ticker ticker) → void
run() Future<void>
Run in a thread
inherited
setup() Future<void>
Prepare for handling
override
start() Future<void>
stop() Future<void>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

minInterval Duration
getter/setter pair