ManualLuckyClock class final

手动时间源;例如 clock.advanceFrames(60)。

Implemented types

Constructors

ManualLuckyClock()
创建停止状态的时钟。

Properties

hashCode → int
The hash code for this object.
no setterinherited
isTicking → bool
是否正在运行。
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

advance(Duration delta) → void
增加原始时间,运行时发出一帧。
advanceFrames(int frames, {Duration step = _frameStep}) → void
按固定 step 推进 frames 帧,帧数须非负。
dispose() → void
清除回调。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start(void onTick(Duration delta)) → void
开始或替换监听。
override
stop() → void
停止监听。
override
tick(Duration raw) → void
设置原始时间,运行时发出一帧。
toString() → String
A string representation of this object.
inherited

Operators

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