FakeTimer class Null safety

An implementation of Timer that's controlled by a FakeAsync.

Implemented types

Properties

creationStackTrace StackTrace
The current stack trace when this timer was created.
read-only
debugString String
Returns debugging information to try to identify the source of the Timer.
read-only
duration Duration
If this is periodic, the time that should elapse between firings of this timer.
final
hashCode int
The hash code for this object.
read-onlyinherited
isActive bool
Returns whether the timer is still active.
read-onlyoverride
isPeriodic bool
Whether this is a periodic timer.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
tick int
The number of durations preceding the most recent timer event.
read-onlyoverride

Methods

cancel() → void
Cancels the timer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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