changeEncryptionKey method Null safety
- EncryptionKey? newKey
Encrypts or decrypts a Database, or changes its EncryptionKey.
This feature is only available in the Enterprise Edition.
If newKey
is null
, the database will be decrypted.
Otherwise the database will be encrypted with that key; if it was already
encrypted, it will be re-encrypted with the new key.
Implementation
FutureOr<void> changeEncryptionKey(EncryptionKey? newKey);