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