instance property

UssdHandlerPlatform get instance

The default instance of UssdHandlerPlatform to use.

Defaults to MethodChannelUssdHandler.

Implementation

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

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

Implementation

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