TimerTicker class

Inheritance

Constructors

TimerTicker(TickerCallback onTick)

Properties

debugLabel String?
An optional label can be provided for debugging purposes.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isActive bool
Whether time is elapsing for this Ticker. Becomes true when start is called and false when stop is called.
no setterinherited
isTicking bool
Whether this Ticker has scheduled a call to call its callback on the next frame.
no setterinherited
muted bool
Whether this ticker has been silenced.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduled bool
Whether this Ticker has already scheduled a frame callback.
no setterinherited
shouldScheduleTick bool
Whether a tick should be scheduled.
no setterinherited

Methods

absorbTicker(Ticker originalTicker) → void
Makes this Ticker take the state of another ticker, and disposes the other ticker.
inherited
describeForError(String name) DiagnosticsNode
Adds a debug representation of a Ticker optimized for including in error messages.
inherited
dispose() → void
Release the resources used by this object. The object is no longer usable after this method is called.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scheduleTick({bool rescheduling = false}) → void
Schedules a tick for the next frame.
override
start() TickerFuture
Starts the clock for this Ticker. If the ticker is not muted, then this also starts calling the ticker's callback once per animation frame.
override
stop({bool canceled = false}) → void
Stops calling this Ticker's callback.
override
toString({bool debugIncludeStack = false}) String
A string representation of this object.
inherited
unscheduleTick() → void
Cancels the frame callback that was requested by scheduleTick, if any.
override

Operators

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