Clock constructor Null safety
- [DateTime currentTime(
Creates a clock based on the given currentTime
, or on the system clock
by default.
Implementation
// ignore: deprecated_member_use_from_same_package
const Clock([DateTime Function() currentTime = systemTime])
: _time = currentTime;