instance property

SerialComPlatform get instance

The default instance of SerialComPlatform to use.

Defaults to MethodChannelSerialCom.

Implementation

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

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

Implementation

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