instance property

TypeMatePlatform get instance

The default instance of TypeMatePlatform to use.

Defaults to MethodChannelTypeMate.

Implementation

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

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

Implementation

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