cancelable_future 0.4.2
cancelable_future: ^0.4.2 copied to clipboard
This package academically provides an opportunity to cancel the future.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add cancelable_future
With Flutter:
$ flutter pub add cancelable_future
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
cancelable_future: ^0.4.2
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_future/cancelable_future.dart';