setBlockedUserDeviceKey method

  1. @override
Future<void> setBlockedUserDeviceKey(
  1. bool blocked,
  2. String userId,
  3. String deviceId
)
override

Implementation

@override
Future<void> setBlockedUserDeviceKey(
    bool blocked, String userId, String deviceId) async {
  final raw =
      await _userDeviceKeysBox.get(MultiKey(userId, deviceId).toString());
  raw['blocked'] = blocked;
  await _userDeviceKeysBox.put(
    MultiKey(userId, deviceId).toString(),
    raw,
  );
  return;
}