when_async 1.2.2 when_async: ^1.2.2 copied to clipboard
Contains utility classes to work with asynchronous computations. Helps with easy consumption of such computations.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add when_async
With Flutter:
$ flutter pub add when_async
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
when_async: ^1.2.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:when_async/when_async.dart';