isExceedSeconds function
判断时间戳差值是否超过指定秒数
Implementation
bool isExceedSeconds(int timestamp1, int timestamp2, { required double seconds }) {
int ms1 = _normalizeTimestamp(timestamp1);
int ms2 = _normalizeTimestamp(timestamp2);
int diffInMilliseconds = (ms1 - ms2).abs();
final double thresholdInMilliseconds = seconds * 1000;
return diffInMilliseconds > thresholdInMilliseconds;
}