defer 1.0.0 copy "defer: ^1.0.0" to clipboard
defer: ^1.0.0 copied to clipboard

The `defer` is a small function intended to simplify the use of functions that require to execute `postponed` actions.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add defer

With Flutter:

 $ flutter pub add defer

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

dependencies:
  defer: ^1.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:defer/defer.dart';
0
likes
160
points
55
downloads

Publisher

unverified uploader

Weekly Downloads

The `defer` is a small function intended to simplify the use of functions that require to execute `postponed` actions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on defer