isExpired property
bool
get
isExpired
Whether or not this token is expired by evaluated expirationDate.
Implementation
bool get isExpired {
return expirationDate.difference(DateTime.now().toUtc()).inSeconds <= 0;
}