isValid method
Is this access token expired or not?
If the access token has not been expired yet, returns true. Otherwise, returns false.
Implementation
bool isValid() => expires != null ? DateTime.now().isBefore(expires!) : false;
Is this access token expired or not?
If the access token has not been expired yet, returns true. Otherwise, returns false.
bool isValid() => expires != null ? DateTime.now().isBefore(expires!) : false;