DartClock constructor

const DartClock([
  1. DateTime _now() = _defaultTime
])

Constructs an instance of DartClock.

An optional implementation of _now can be provided to override implementation

since 1.7.0

Implementation

const DartClock([this._now = _defaultTime]);