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
110
pub points
65%
popularity

Publisher

unverified uploader

Flutter library to help using long run isolates.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on isolate_helper