auto_api 0.0.1-alpha.3 auto_api: ^0.0.1-alpha.3 copied to clipboard
Library to automatically create a client interface to call server's methods asynchronously
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add auto_api
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
auto_api: ^0.0.1-alpha.3
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:auto_api/exceptions/exceptions.dart';
import 'package:auto_api/hub.dart';
import 'package:auto_api/hubs_inspector.dart';
import 'package:auto_api/serializer.dart';