Using Dio would enable real send and receive progress updates and allow requests to be canceled with a cancel token.
I've implemented a preliminary conversion here to demonstrate these capabilities: https://github.com/JacoFaberSA/minio-dart/tree/convert-from-http-to-dio
However, in its current state, the user would need to include Dio in their app to access cancel tokens. To address this, I would implement a custom callback controller to relay the getter and callbacks to the cancel token.
Additionally, I would add onProgress callbacks to other features, as this is straightforward to implement.
Using Dio would enable real send and receive progress updates and allow requests to be canceled with a cancel token.
I've implemented a preliminary conversion here to demonstrate these capabilities: https://github.com/JacoFaberSA/minio-dart/tree/convert-from-http-to-dio
However, in its current state, the user would need to include Dio in their app to access cancel tokens. To address this, I would implement a custom callback controller to relay the getter and callbacks to the cancel token.
Additionally, I would add onProgress callbacks to other features, as this is straightforward to implement.