instance property

ImageCompressPlatform get instance

The default instance of ImageCompressPlatform to use.

Defaults to MethodChannelImageCompress.

Implementation

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

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

Implementation

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