instance property

FlutterSaverPlatform get instance

The default instance of FlutterSaverPlatform to use.

Defaults to MethodChannelFlutterSaver.

Implementation

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

Sets the instance of FlutterSaverPlatform to use.

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

Implementation

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