TickerLuckyClock class final

使用宿主提供的 vsync,自动跟随 TickerMode。

Implemented types

Constructors

TickerLuckyClock(TickerProvider vsync)
创建时钟;宿主负责在销毁时调用 dispose。

Properties

hashCode → int
The hash code for this object.
no setterinherited
isTicking → bool
ticker 是否活跃。
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
清空回调并释放 ticker。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start(void onTick(Duration raw)) → void
替换回调并在需要时启动。
override
stop() → void
停止 ticker。
override
toString() → String
A string representation of this object.
inherited

Operators

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