instance property
DeviceInfoPlatform
instance
The default instance of DeviceInfoPlatform to use.
Defaults to MethodChannelDeviceInfo.
Implementation
static DeviceInfoPlatform get instance => _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;
}