instance property

SharedPreferencesAsync get instance

The active SharedPreferencesAsync instance.

By default, uses the singleton instance. Can be overridden in tests with overrideWith.

Implementation

static SharedPreferencesAsync get instance =>
    _overriddenPrefs ??= SharedPreferencesAsync();