Clock constructor

const Clock(
  1. [DateTime currentTime(
      ) = systemTime]
    )

    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;