dio_flutter_transformer2 4.0.1 icon indicating copy to clipboard operation
dio_flutter_transformer2: ^4.0.1 copied to clipboard

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

dio_flutter_transformer2 Pub #

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

This package is a fork of dio_flutter_transformer which is no longer maintained.

Through practical experience, we find that although using compute can make tasks go on in the background, it may lead to slow task execution. So please think carefully before using it.

Install #

dependencies:
  dio_flutter_transformer: ^4.0.1 # latest version

Usage #

Import the package:

import 'package:dio/dio.dart';
import 'package:dio_flutter_transformer2/dio_flutter_transformer.dart';

Then replace dio default transformer:


var dio=Dio();
dio.transformer = FlutterTransformer(); // replace dio default transformer
dio.get(...);
2
likes
140
pub points
85%
popularity

Publisher

unverified uploader

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

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

dio, flutter

More

Packages that depend on dio_flutter_transformer2