instance property

ShareTextPlatform get instance

The default instance of ShareTextPlatform to use.

Defaults to MethodChannelShareText.

Implementation

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

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

Implementation

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