is_nth_run 1.0.1 copy "is_nth_run: ^1.0.1" to clipboard
is_nth_run: ^1.0.1 copied to clipboard

A small package to check if it is the n-th or every n-thtime the app runs.

is_nth_run #

A package to check if it is the n-th time the app runs.

Getting Started #

To use this plugin, add is_nth_run as a dependency in your pubspec.yaml file.

Usage #

Import is_nth_run.dart:

import 'package:is_nth_run/is_nth_run.dart';

To check if this is the n-th time the app is run call:

bool nthRun = await IsNthRun.isNthRun(3);

To check if this is the every n-th time the app is run call:

bool nthRun = await IsNthRun.isEveryNthRun(5);

To reset the counter call:

await IsNthRun.reset();
1
likes
160
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

A small package to check if it is the n-th or every n-thtime the app runs.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on is_nth_run