setEnabled method
Enable/Disable frame crypto for the sender and receiver. @param enabled true to enable, false to disable if false, the frame cryptor will pass through frames and without encryption/decryption
Implementation
Future<void> setEnabled(bool enabled) async {
_enabled = enabled;
for (var frameCryptor in _frameCryptors.entries) {
await frameCryptor.value.setEnabled(enabled);
}
}