instance property

The default instance of HardwareDetailsPlatform to use.

Defaults to MethodChannelHardwareDetails.

Implementation

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

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

Implementation

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