dio_flutter_transformer2

Creator: coderz1093

Last updated:

0 purchases

dio_flutter_transformer2 Image
dio_flutter_transformer2 Images

Languages

Categories

Add to Cart

Description:

dio flutter transformer2

dio_flutter_transformer2 #
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
copied to clipboard
Usage #
Import the package:
import 'package:dio/dio.dart';
import 'package:dio_flutter_transformer2/dio_flutter_transformer.dart';
copied to clipboard
Then replace dio default transformer:

var dio=Dio();
dio.transformer = FlutterTransformer(); // replace dio default transformer
dio.get(...);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.