instance property

ShareWhatsappPlatform get instance

The default instance of ShareWhatsappPlatform to use.

Defaults to MethodChannelShareWhatsapp.

Implementation

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

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

Implementation

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