Last updated:
0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.