isExpired method
Determine if the notification has expired.
Implementation
bool isExpired() {
var now = DateTime.now();
var expiredDate = DateTime.fromMillisecondsSinceEpoch(timeExpired!);
return expiredDate.isBefore(now);
}
Determine if the notification has expired.
bool isExpired() {
var now = DateTime.now();
var expiredDate = DateTime.fromMillisecondsSinceEpoch(timeExpired!);
return expiredDate.isBefore(now);
}