instance property

The default instance of SharedPreferencesStorePlatform to use.

Defaults to MethodChannelSharedPreferencesStore.

Implementation

static SharedPreferencesStorePlatform get instance => _instance;
void instance=(SharedPreferencesStorePlatform instance)

Platform-specific plugins should set this with their own platform-specific class that extends SharedPreferencesStorePlatform when they register themselves.

Implementation

static set instance(SharedPreferencesStorePlatform instance) {
  if (!instance.isMock) {
    PlatformInterface.verify(instance, _token);
  }
  _instance = instance;
}