CancelToken class Null safety
You can cancel a request by using a cancel token. One token can be shared with different requests. when a token's cancel method invoked, all requests with this token will be cancelled.
- cancelError → DioError?
If request have been canceled, save the cancel Error.
- hashCode → int
The hash code for this object.
- isCancelled → bool
- requestOptions ↔ RequestOptions?
read / write
- runtimeType → Type
A representation of the runtime type of the object.
When cancelled, this future will be resolved.