instance property

AesGcmCryptoPlatform get instance

The default instance of AesGcmCryptoPlatform to use.

This will default to MethodChannelAesGcmCrypto, but can be overridden by platform-specific implementations using the instance setter.

Implementation

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

Sets the default instance for this platform interface.

Platform-specific plugins should call this to register their implementation.

Implementation

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