isTampered property
bool
get
isTampered
Returns true if the local device wall-clock has diverged from the
monotonic clock by more than 2 seconds since the last successful sync.
Implementation
static bool get isTampered {
final syncTime = _lastSyncTime;
final syncElapsed = _lastSyncElapsed;
if (syncTime == null || syncElapsed == null) return false;
final monoElapsed = _stopwatch.elapsed - syncElapsed;
final wallElapsed = DateTime.now().difference(syncTime);
return (wallElapsed - monoElapsed).abs() > _maxClockSkew;
}