setSharedKey method

  1. @override
Future<void> setSharedKey(
  1. String key,
  2. {int? keyIndex}
)
override

Implementation

@override
Future<void> setSharedKey(String key, {int? keyIndex}) async {
  _sharedKey = Uint8List.fromList(key.codeUnits);
  return _keyProvider.setSharedKey(key: _sharedKey!, index: keyIndex ?? 0);
}