is_nth_run

Last updated:

0 purchases

is_nth_run Image
is_nth_run Images
Add to Cart

Description:

is nth run

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';
copied to clipboard
To check if this is the n-th time the app is run call:
bool nthRun = await IsNthRun.isNthRun(3);
copied to clipboard
To check if this is the every n-th time the app is run call:
bool nthRun = await IsNthRun.isEveryNthRun(5);
copied to clipboard
To reset the counter call:
await IsNthRun.reset();
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.