instance property
SharedPreferencesAsync
get
instance
Returns the singleton instance of SharedPreferencesAsync.
If an override has been set via overrideWith, returns that instance. Otherwise, returns a new instance of SharedPreferencesAsync.
Implementation
static SharedPreferencesAsync get instance =>
_overriddenPrefs ??= SharedPreferencesAsync();