instance property

SystemInfoPlatform get instance

The default instance of SystemInfoPlatform to use.

Defaults to MethodChannelSystemInfo.

Implementation

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

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

Implementation

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