diox_flutter_transformer 1.0.1 copy "diox_flutter_transformer: ^1.0.1" to clipboard
diox_flutter_transformer: ^1.0.1 copied to clipboard

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

diox_flutter_transformer Pub #

A diox 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:
  diox_flutter_transformer: ^1.0.1 # latest version

Usage #

Import the package:

import 'package:dio/dio.dart';
import 'package:diox_flutter_transformer/diox_flutter_transformer.dart';

Then replace dio default transformer:


var dio=Dio();
dio.transformer = FlutterTransformer(); // replace dio default transformer
dio.get(...);
1
likes
150
pub points
71%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

diox, flutter

More

Packages that depend on diox_flutter_transformer