cancelable_compute 2.0.0 cancelable_compute: ^2.0.0 copied to clipboard
Flutter-based compute operation that can be canceled with either null or a specific value.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add cancelable_compute
With Flutter:
$ flutter pub add cancelable_compute
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
cancelable_compute: ^2.0.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:cancelable_compute/cancelable_compute.dart';