instance property

MmDeviceInfoPlatform get instance

The default instance of MmDeviceInfoPlatform to use.

Defaults to MethodChannelMmDeviceInfo.

Implementation

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

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

Implementation

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