now top-level property
DateTime
get
now
Get the current DateTime. The value returned here can be overriden for debug or testing purposes with setFakeNow.
Implementation
DateTime get now =>
(_fakeTimeElapsedSince.isRunning && _now != null
? _now!.add(_fakeTimeElapsedSince.elapsed)
: _now) ??
DateTime.now();