instance property

DeviceKitPlatform get instance

The default instance of DeviceKitPlatform to use.

Defaults to MethodChannelDeviceKit.

Implementation

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

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

Implementation

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