instance property

The default instance of DeviceInfoPlatform to use.

Defaults to MethodChannelDeviceInfo.

Implementation

static DeviceInfoPlatform get instance => _instance;
void instance=(DeviceInfoPlatform instance)

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

Implementation

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