instance property
WhatsappDirectSendPlatform
get
instance
The default instance of WhatsappDirectSendPlatform to use.
Defaults to MethodChannelWhatsappDirectSend.
Implementation
static WhatsappDirectSendPlatform get instance => _instance;
set
instance
(WhatsappDirectSendPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends WhatsappDirectSendPlatform when they register themselves.
Implementation
static set instance(WhatsappDirectSendPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}