instance property

ShareHandlerPlatform get instance

The default instance of ShareHandlerPlatform to use.

Defaults to MethodChannelShareHandler.

Implementation

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

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

Implementation

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