dio_flutter_transformer 3.0.2 dio_flutter_transformer: ^3.0.2 copied to clipboard
A dio transformer espically for flutter, by which the json decoding will be in background with [compute] function in flutter sdk.
import 'package:dio/dio.dart';
import '../lib/dio_flutter_transformer.dart';
main() async {
var dio = Dio();
// replace dio default transformer
dio.transformer = new FlutterTransformer();
//....
Response response =
await dio.get("https://api.github.com/orgs/flutterchina/repos");
print(response.data);
}