ecp_net 0.0.9
ecp_net: ^0.0.9 copied to clipboard
基于 Dio 的网络请求二次封装库,提供统一错误处理、数据转换、请求状态回调、State 生命周期绑定等功能,内部项目通用的 Dart 网络请求工具库。
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add ecp_netThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
ecp_net: ^0.0.9Alternatively, 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:ecp_net/ecp_net.dart';