instance property

OtpCryptoConfig get instance

Retrieve the globally configured instance. Throws if initialize has not been called.

HINT: Call OtpCryptoConfig.initialize(...) once at app startup.

Implementation

static OtpCryptoConfig get instance {
  final inst = _instance;
  if (inst == null) {
    throw StateError('OtpCryptoConfig is not initialized. Call initialize(...) first.');
  }
  return inst;
}