oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

Add isClosed and exception handling for closed state to oauth2.Client

Open illaz opened this issue 2 years ago • 0 comments

Until now there is no way to detect whether an oauth2.Client is closed or not. This PR changes that.

There is now an isClosed field on the oauth2.Client.

A request on a closed client no longer leads to a 'Null check operator used on a null value' error, but instead an http.ClientException is thrown with a meaningful error message.


  • [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:

Note that many Dart repos have a weekly cadence for reviewing PRs - please allow for some latency before initial review feedback.

illaz avatar Oct 23 '23 15:10 illaz