isValid method
Implementation
bool isValid() {
DateTime now = DateTime.now();
int timestamp = now.millisecondsSinceEpoch ~/ 1000;
return timestamp <= expiredTime - 60;
}
bool isValid() {
DateTime now = DateTime.now();
int timestamp = now.millisecondsSinceEpoch ~/ 1000;
return timestamp <= expiredTime - 60;
}