instance property

SharerPlatform get instance

The default instance of SharerPlatform to use.

Defaults to MethodChannelSharer.

Implementation

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

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

Implementation

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