instance property

JSaver get instance

The default instance of JSaverPlatform to use.

Defaults to MethodChannelJSaver.

Implementation

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

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

Implementation

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