getInstance static method
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();
}