getKeys static method

Set<String> getKeys()

Returns all keys in the persistent storage.

Implementation

static Set<String> getKeys() {
  assert(_initCalled,
      'Prefs.init() must be called first in an initState() preferably!');
  assert(_prefsInstance != null,
      'Maybe call Prefs.getKeysF() instead. SharedPreferences not ready yet!');
  return _prefsInstance?.getKeys() ?? {};
}