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