instance property

SharePlatform instance

The default instance of SharePlatform to use.

Defaults to MethodChannelShare.

Implementation

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

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

Implementation

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