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