instance property

KatDevicePlatform get instance

The default instance of KatDevicePlatform to use.

Defaults to MethodChannelKatDevice.

Implementation

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

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

Implementation

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