ManualLuckyClock class final
手动时间源;例如 clock.advanceFrames(60)。
- Implemented types
Constructors
- ManualLuckyClock()
- 创建停止状态的时钟。
Properties
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