clock library Null safety
Classes
Properties
Functions
-
getStopwatch(
) → Stopwatch -
Returns a stopwatch that uses the current time as reported by clock.
@Deprecated('Use clock.stopwatch() instead.')
-
systemTime(
) → DateTime -
Returns the current system time.
@Deprecated('Use new DateTime.now() instead.')
-
withClock<
T> (Clock clock, T callback(), {bool isFinal: false} ) → T -
Runs
callback
with the given value for the top-levelclock
field. [...]
Typedefs
-
TimeFunction(
) → DateTime -
Returns current time.
@Deprecated('Pass around an instance of Clock instead.')