isExpired method

bool isExpired()

Determine if the notification has expired.

Implementation

bool isExpired() {
  var now = DateTime.now();
  var expiredDate = DateTime.fromMillisecondsSinceEpoch(timeExpired!);
  return expiredDate.isBefore(now);
}