TrustedClockService constructor

TrustedClockService({
  1. Duration normalTolerance = const Duration(seconds: 5),
  2. Duration suspiciousJumpThreshold = const Duration(hours: 1),
  3. ClockSample sampleNow()?,
  4. TrustedTimeSource? trustedTimeSource,
})

Implementation

TrustedClockService({
  this.normalTolerance = const Duration(seconds: 5),
  this.suspiciousJumpThreshold = const Duration(hours: 1),
  ClockSample Function()? sampleNow,
  this.trustedTimeSource,
}) : _sampleNow = sampleNow ?? _defaultSample;