run_once 1.0.7+3 copy "run_once: ^1.0.7+3" to clipboard
run_once: ^1.0.7+3 copied to clipboard

An extremely simple library for running 'things' exactly once. No matter how many times that 'thing' is called.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add run_once

With Flutter:

 $ flutter pub add run_once

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

dependencies:
  run_once: ^1.0.7+3

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:run_once/run_once.dart';
2
likes
160
points
14
downloads

Publisher

verified publishertobis.dk

Weekly Downloads

An extremely simple library for running 'things' exactly once. No matter how many times that 'thing' is called.

Repository (GitLab)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on run_once