hio 0.3.7
hio: ^0.3.7 copied to clipboard

Dart native
Flutter Android iOS Linux macOS Windows

Enhanced Http Client for Dart/Flutter. Make Api call easy, an Dart/Flutter package.

example/example.dart

import '../test/apis.dart';

dynamic githubDemo() async {
  var api = GithubApi();
  var x = api('users/:user/repos', urlParams: {'user': 'google'})
    ..successCB = (data, resp, c) {
      print('data received: $data');
      print('links: ${c.links}');
    }
    ..errorCB = (err, resp, c) {
      print('ERROR: $err');
    };

  return x.go();
}

void main() async {
  await githubDemo();

  print('--------------------- github api test ok..');
}
0
likes
80
pub points
0%
popularity

Enhanced Http Client for Dart/Flutter. Make Api call easy, an Dart/Flutter package.

Homepage

Uploader

hedzrz@gmail.com

License

MIT (LICENSE)

More

Packages that depend on hio