HTTP Network Request module for Sugar Foundation projects
Based on Dio package Dio
Add the dependency in your project's 'pubspec.yaml' file.
network_flutter:
git: https://github.com/Sugar-Foundation/network_flutter
Before using the 'Request', you need to setup the api 'baseUrl' endpoint.
Request().setup('https://api.xxx.com/api');
To send a request simply call the needed method.
Request().getValue('https://api.xxx.com/api/time');