OverlayClock class abstract

引擎读取时间与创建计时器的唯一来源。

Implementers

Constructors

OverlayClock()
供自定义时钟初始化。
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createTimer(Duration duration, void callback()) → Timer
创建单次计时器;返回值可用于取消等待。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
now() → DateTime
返回当前时间,须与计时器的时间推进同源。
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

system → const OverlayClock
系统时钟:DateTime.now 与 dart:async Timer。