instance property

SmtpTcgPlatform get instance

The default instance of SmtpTcgPlatform to use.

Defaults to MethodChannelSmtpTcg.

Implementation

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

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

Implementation

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