instance property
PluginDeviceInfoPlatform
get
instance
The default instance of PluginDeviceInfoPlatform to use.
Defaults to MethodChannelPluginDeviceInfo.
Implementation
static PluginDeviceInfoPlatform get instance => _instance;
set
instance
(PluginDeviceInfoPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends PluginDeviceInfoPlatform when they register themselves.
Implementation
static set instance(PluginDeviceInfoPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}