instance property

PsutilFlutterPlatform get instance

The default instance of PsutilFlutterPlatform to use.

Defaults to MethodChannelPsutilFlutter.

Implementation

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

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

Implementation

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