isLocked method
Implementation
bool? isLocked() {
if (this.timestamp != null) {
if (DateTime.fromMillisecondsSinceEpoch(this.timestamp! * 1000)
.difference(DateTime.now())
.inSeconds >
0) {
return true;
} else {
return false;
}
} else {
return null;
}
}