CliClock class abstract interface

Where a Cli's time comes from and where the timers of its inline session run: the wall clock (CliClock.system), or one a test moves by hand (the fake terminal's, package:twk_test/cli.dart).

Constructors

CliClock.system()
The wall clock: run runs its body as it is, stopwatch is a new Stopwatch.
const
factory

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
run<R>(R body()) → R
Runs body where the timers it starts are this clock's.
stopwatch() → Stopwatch
A stopwatch on this clock, started.
toString() → String
A string representation of this object.
inherited

Operators

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