getInstance static method

  1. @Deprecated('Use Prf.instance instead')
Future<SharedPreferences> getInstance()

Gets the SharedPreferences instance, initializing it if necessary.

This is the primary method for obtaining the SharedPreferences instance throughout the application.

Returns a Future that completes with the SharedPreferences instance.

Implementation

@Deprecated('Use Prf.instance instead')
static Future<SharedPreferences> getInstance() async {
  return _deprecatedPrefs ?? await _init();
}