clock property Null safety

Clock clock
override

The current time.

In the automated test environment (flutter test), this is a fake clock that begins in January 2015 at the start of the test and advances each time pump is called with a non-zero duration.

In the live testing environment (flutter run), this object shows the actual current wall-clock time.

Implementation

@override
Clock get clock => const Clock();