instance property

DeviceSystemPlatform get instance

The default instance of DeviceSystemPlatform to use.

Defaults to MethodChannelDeviceSystem.

Implementation

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

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

Implementation

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