instance property

BaseImagePlatform get instance

The default instance of BaseImagePlatform to use.

Defaults to MethodChannelBaseImage.

Implementation

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

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

Implementation

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