Expiry constructor
Expiry(
- int deltaInMSec
Implementation
Expiry(int deltaInMSec) {
// Use bigint because it can overflow the maximum number allowed in a double float.
_value = (BigInt.from(DateTime.now().millisecondsSinceEpoch) +
BigInt.from(deltaInMSec) -
REPLICA_PERMITTED_DRIFT_MILLISECONDS) *
NANOSECONDS_PER_MILLISECONDS;
}