instance property

PixelscopePlatform get instance

The default instance of PixelscopePlatform to use.

Defaults to MethodChannelPixelscope.

Implementation

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

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

Implementation

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