isValid method

bool isValid()

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;