instance property

The default instance of FlutterLocalPrefsPlatform to use.

Defaults to MethodChannelFlutterLocalPrefs.

Implementation

static FlutterLocalPrefsPlatform get instance => _instance;
set instance (FlutterLocalPrefsPlatform instance)

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

Implementation

static set instance(FlutterLocalPrefsPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}