nowUtc method

  1. @override
Result<DateTime> nowUtc()
override

Returns the current instant in UTC.

Implementation

@override
Result<DateTime> nowUtc() => _clockResults.isNotEmpty
    ? _clockResults.removeFirst()
    : Ok<DateTime>(now.toUtc());