instance property

OsInfoPluginPlatform get instance

The default instance of OsInfoPluginPlatform to use.

Defaults to MethodChannelOsInfoPlugin.

Implementation

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

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

Implementation

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