current property

Clock current
getter/setter pair

The default Clock is the SystemClock but can be changed by the user. This is used for Instant.now. Replacing this with FakeClock can be useful for testing.

Library writers should not set this variable.

Implementation

static Clock current = SystemClock.instance;