maybePrefs property

  1. @Deprecated('Use Prf.instance instead')
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

@Deprecated('Use Prf.instance instead')
static SharedPreferences? get maybePrefs => _deprecatedPrefs;