instance property

Cryptography get instance

Static variable that holds the Cryptography used by package:better_cryptography classes.

See Cryptography documentation.

Implementation

static Cryptography get instance => _instance;
set instance (Cryptography cryptography)

Implementation

static set instance(Cryptography cryptography) {
  if (_instanceFrozen && _instance != cryptography) {
    throw StateError(
      '`Cryptography.instance=` failed because a different implementation has been frozen.',
    );
  }
  _instance = cryptography;
}