Last updated:
0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.