instance property

EncrypterPlatform get instance

The default instance of EncrypterPlatform to use.

Defaults to MethodChannelEncrypter.

Implementation

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

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

Implementation

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