when 0.2.0 copy "when: ^0.2.0" to clipboard
when: ^0.2.0 copied to clipboard

Dart 1 only

Register callbacks on code which is conditionally sync or async.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add when

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  when: ^0.2.0

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:when/when.dart';
0
likes
15
pub points
20%
popularity

Publisher

unverified uploader

Register callbacks on code which is conditionally sync or async.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

More

Packages that depend on when