instance property

BlurHashPlatform instance

The default instance of BlurHashPlatform to use.

Defaults to MethodChannelBlurHash.

Implementation

static BlurHashPlatform get instance => _instance;
void instance=(BlurHashPlatform instance)

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

Implementation

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