smooth_api 1.0.0 smooth_api: ^1.0.0 copied to clipboard
This library utilises Dart internal isolate to handle all your network calls to Api and on top of that it uses Hive database to cache the api responses and will give the response back even when intern [...]
example/smooth_api_example.dart
import 'package:smooth_api/smooth_api.dart';
void main() async {
var client = SmoothApiClient();
await client.get(Uri.http("google.com"),
headers: {"auth": "fdfdfd", "isTrue": "true"}, callback: (response) {
print((response as Response).body);
});
}