instance property

Cryptography instance

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

See Cryptography documentation.

Implementation

static Cryptography get instance => _instance;
void 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;
}