instance property

DeviceDetailPlatform get instance

The default instance of DeviceDetailPlatform to use.

Defaults to MethodChannelDeviceDetail.

Implementation

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

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

Implementation

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