isExpired property Null safety

bool isExpired

Whether or not this token is expired by evaluated expirationDate.

Implementation

bool get isExpired {
  return expirationDate!.difference(DateTime.now().toUtc()).inSeconds <= 0;
}