freezeInstance static method

void freezeInstance(
  1. Cryptography cryptography
)

Sets Cryptography.instance and prevents further mutations.

Implementation

static void freezeInstance(Cryptography cryptography) {
  Cryptography.instance = cryptography;
  _instanceFrozen = true;
}