smooth_api 1.0.0 copy "smooth_api: ^1.0.0" to clipboard
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);
  });
}
4
likes
140
pub points
0%
popularity

Publisher

verified publisheranonymousaliens.app

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 internet is not available.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

crypto, hive, http, http_parser

More

Packages that depend on smooth_api