when_async_flutter 1.2.0+2 when_async_flutter: ^1.2.0+2 copied to clipboard
Contains widgets, notifiers, etc to work with asynchronous computations. Helps with easy consumption of such computations in a flutter widget.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add when_async_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
when_async_flutter: ^1.2.0+2
Alternatively, your editor might support 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_flutter/when_async_flutter.dart';