run_once 1.0.5 copy "run_once: ^1.0.5" to clipboard
run_once: ^1.0.5 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

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.5

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:run_once/run_once.dart';
1
likes
0
pub points
53%
popularity

Publisher

unverified uploader

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

Repository (GitLab)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on run_once