maybePrefs property
SharedPreferences?
get
maybePrefs
Provides synchronous access to the cached SharedPreferences instance.
Note: This may return null if SharedPreferences has not been initialized. Use with caution and only in contexts where async/await cannot be used.
Returns the cached SharedPreferences instance or null if not initialized.
Implementation
static SharedPreferences? get maybePrefs => _prefs;