instance property

PixelfreePlatform get instance

The default instance of PixelfreePlatform to use.

Defaults to MethodChannelPixelfree.

Implementation

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

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

Implementation

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