Tick class
Timer-related utilities.
Constructors
- Tick()
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
awaitMs(
int ms) → Future< void> -
Returns a Future that resolves after
ms
milliseconds. -
nextTick(
dynamic func()) → TFuncCancel -
Run
func
in the next tick (i.e. in zero milliseconds). Returns a cancellation callback to cancel the pending invocation offunc
. -
periodic(
int ms, void func()) → TFuncCancel -
Run
func
everyms
milliseconds. Returns a cancellation callback. -
periodicAsync(
int ms, TFuncAsyncAction func, [bool callImmediately = true, bool allowReentry = false]) → Future< TFuncCancel> -
Run the asynchronous
func
everyms
milliseconds. -
runInMs(
int ms, void func()) → TFuncCancel -
Run
func
inms
milliseconds. Returns a cancellation callback.