checkReSetCryptKey method

void checkReSetCryptKey(
  1. String cryptKey
)

Just reset the cryptKey (will not encrypt or decrypt anything). Usually you should call this method after other process reKey() the multi-process mmkv.

Implementation

void checkReSetCryptKey(String cryptKey) {
  final bytes = MMBuffer.fromList(const Utf8Encoder().convert(cryptKey))!;
  _checkReSetCryptKey(_handle, bytes.pointer!, bytes.length);
  bytes.destroy();
}