Download Latest Version v7.31.2 source code.zip (932.1 kB) Google Add to Preferred Sources
Home / v7.31.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-09-30 673 Bytes
v7.31.1 source code.tar.gz 2026-09-30 736.5 kB
v7.31.1 source code.zip 2026-09-30 929.8 kB
Totals: 3 Items   1.7 MB 0

Fixed

  • handleFailure works when the request throws - Dio throws for a status outside 2xx, so most failed requests reach handleFailure through a DioException. On that path network and networkResponse returned the callback's result as the response itself, so a callback that returned nothing (one that only shows a toast, say), plain or async, or one that returned a fallback value ended in a TypeError. The callback is now awaited when it's async, and what it returns is used the same way as for handleSuccess: nothing keeps the error response, a NyResponse replaces it, and any other value becomes its data, which is what network returns
Source: README.md, updated 2026-09-30