dio_client_extended
This is a simplified implementation of Dio it helps quickly have dio implementation in their projects.
Features
This package contains get, post, delete, put & patch methods
Getting started
Kindly initialize the DioClientExtended object with your baseUrl and start accessing all methods.
Usage
///[DioClientExtended] object instantiation
final dioClient =
DioClientExtended(baseUrl: 'https://jsonplaceholder.typicode.com');
try {
///calling of the methods
final response = await dioClient.get(path: '/posts');
if (response.statusCode == 200) {
debugPrint(jsonEncode(response.data));
} else {
debugPrint(response.statusMessage);
}
} on Exception catch (e) {
debugPrint('Error: $e');
}
Additional information
More information can be found on Website Credits goes to Dio contributors as this package depends on it.