reset static method

Future<void> reset()

Resets the plugin.

The first call to IsFirstRun.isFirstCall() after calling reset() method will return true, subsequent calls will return false.

Calls to IsFirstRun.isFirstRun() after calling reset() will return true for as long as the app is running after calling [IsFirstRun.isFirstRun()] the first time after the reset. After a restart of the app, IsFirstRun.isFirstRun() will return false.

Implementation

static Future<void> reset() async {
  SharedPreferences prefs = await SharedPreferences.getInstance();
  prefs.setBool(_firstRunSettingsKey, true);
  prefs.setBool(_firstCallSettingsKey, true);
}