instance property

ShareMePlatform get instance

The default instance of ShareMePlatform to use.

Defaults to MethodChannelShareMe.

Implementation

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

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

Implementation

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