dynamic setCryptoProvider(CryptoProvider provider)

Source

setCryptoProvider(CryptoProvider provider) {
  if(_isCryptoProviderLocked)
    throw new StateError("crypto provider is locked");
  _CRYPTO_PROVIDER = provider;
  _isCryptoProviderLocked = true;
}