simple_fetch 0.1.0
simple_fetch: ^0.1.0 copied to clipboard
Turn Dio responses into typed models. Works for JSON objects, lists, and nested payloads across current Flutter versions.
0.1.0 #
- Decode every verb in one place, and run
transformerbefore the object-or-list check so nested payloads such as{"data": [...]}map correctly. - Treat any 2xx status as success unless
successCodesis set. Empty bodies return null, or an empty list from the list methods. successCodesoutside the normal 2xx range are accepted when no customvalidateStatusis set.- Pass an existing
DioorBaseOptionsfor a base URL, headers, and timeouts. urlis required. Failed requests and unexpected JSON shapes throwSimpleError.- Support Flutter 3.3 through current Flutter 3.x (Dart
>=2.18.0 <4.0.0), including Linux and Windows.
0.0.6 #
Lowered sdk bundle contraints
0.0.5 #
Fixed wrong link to repo
0.0.4 #
- Updated docs
0.0.3 #
- Updated docs
0.0.2 #
- Updated target platforms.
0.0.1 #
- TODO: Describe initial release.