packagist_network 1.2.2 packagist_network: ^1.2.2 copied to clipboard
Wrapper network request library for dio.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add packagist_network
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
packagist_network: ^1.2.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:packagist_network/adapter/dio_adapter.dart';
import 'package:packagist_network/adapter/dio_adapter_native.dart';
import 'package:packagist_network/adapter/dio_adapter_stub.dart';
import 'package:packagist_network/adapter/dio_adapter_web.dart';
import 'package:packagist_network/interceptor/cancel_interceptor.dart';
import 'package:packagist_network/interceptor/log_interceptor.dart';
import 'package:packagist_network/interceptor/retry_interceptor.dart';
import 'package:packagist_network/network.dart';
import 'package:packagist_network/request/http_request.dart';
import 'package:packagist_network/request/http_request_setting.dart';
import 'package:packagist_network/resolve/safe_convert.dart';
import 'package:packagist_network/status/http_status_codes.dart';