hasExpired property Null safety

bool hasExpired

Returns true if the cookie has expired

Implementation

bool get hasExpired {
  if (expires is DateTime) {
    //TODO
    return false;
  }

  if (maxAge is int) {
    //TODO
    return false;
  }

  return false;
}