instance property

ScreenPixelPlatform get instance

The default instance of ScreenPixelPlatform to use.

Defaults to MethodChannelScreenPixel.

Implementation

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

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

Implementation

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