instance property

SendmailPlatform get instance

The default instance of SendmailPlatform to use.

Defaults to MethodChannelSendmail.

Implementation

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

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

Implementation

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