instance property

SmsSenderPlatform get instance

The default instance of SmsSenderPlatform that will be used.

Defaults to MethodChannelSmsSender.

Implementation

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

Sets a custom implementation of SmsSenderPlatform.

This can be used for testing or alternative platform-specific implementations.

Implementation

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