is_nth_run 1.0.1 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();