dio_isolate_pro 5.6.0 copy "dio_isolate_pro: ^5.6.0" to clipboard
dio_isolate_pro: ^5.6.0 copied to clipboard

A dio transformer espically for flutter, by which the json decoding will be in background with [compute] function in flutter sdk.

example/example.dart

import 'package:dio/dio.dart';
import '../lib/dio_isolate_pro.dart';

main() async {
    var dio = Dio();
    // replace dio default transformer
    dio.transformer = new DioIsolatePro();

    //....
    Response response =
        await dio.get("https://api.github.com/orgs/flutterchina/repos");
    print(response.data);
}
2
likes
0
points
142
downloads

Publisher

unverified uploader

Weekly Downloads

A dio transformer espically for flutter, by which the json decoding will be in background with [compute] function in flutter sdk.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on dio_isolate_pro