isExpired property Null safety
Whether or not this code has expired yet, according to its expirationDate.
Implementation
bool get isExpired {
return expirationDate!.difference(DateTime.now().toUtc()).inSeconds <= 0;
}
Whether or not this code has expired yet, according to its expirationDate.
bool get isExpired {
return expirationDate!.difference(DateTime.now().toUtc()).inSeconds <= 0;
}