isolate_helper

Last updated:

0 purchases

isolate_helper Image
isolate_helper Images
Add to Cart

Description:

isolate helper

isolate_helper #
Flutter library to reduce boilerplate for long-running isolates.
Getting started #
To use this library, add the following to your pubspec.yaml:
isolate_helper: ^0.1.0
copied to clipboard
Usage #
Create a class that extends IsolateHelper:
import 'dart:convert';

import 'package:isolate_helper/isolate_helper.dart';

class JsonDecoderHelper extends IsolateHelper<String, Map<String, dynamic>> {
JsonDecoderHelper._()
: super(
isolateFunction: decode,
debugName: 'jsonDecode',
);
}

Map<String, dynamic> decode(String data) => jsonDecode(data);

copied to clipboard

License:

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

Files In This Product:

Customer Reviews

There are no reviews.