reset static method

  1. @Deprecated('No longer needed with SharedPreferencesAsync')
void reset()

Resets the cached SharedPreferences instance and initialization state.

Useful for testing or after clearing all preferences to ensure the next call fetches a fresh instance.

Implementation

@Deprecated('No longer needed with SharedPreferencesAsync')
static void reset() {
  _deprecatedPrefs = null;
  _initFuture = null;
}