net_retrofit_kit 0.1.1
net_retrofit_kit: ^0.1.1 copied to clipboard
基于 Dio 的声明式 HTTP 客户端:用注解定义 API 接口并自动生成实现,少写样板代码,支持多 Client、自定义响应解析与统一错误处理,便于接入现有项目。
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add net_retrofit_kitThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
net_retrofit_kit: ^0.1.1Alternatively, 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:net_retrofit_kit/net_retrofit_kit.dart';