isolate_helper 0.2.0 copy "isolate_helper: ^0.2.0" to clipboard
isolate_helper: ^0.2.0 copied to clipboard

Flutter library to help using long run isolates.

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

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);

4
likes
130
points
603
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter library to help using long run isolates.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on isolate_helper