isValid method

bool isValid()

Checks if the access token request returned a valid status code

Implementation

bool isValid() {
  return httpStatusCode == 200 && (error == null || error!.isEmpty);
}