setBlocked method

  1. @override
Future<void> setBlocked(
  1. bool newBlocked
)
override

Implementation

@override
Future<void> setBlocked(bool newBlocked) async {
  if (!isValid) {
    //throw Exception('setBlocked called on invalid key');
    return;
  }
  _blocked = newBlocked;
  await client.database
      ?.setBlockedUserDeviceKey(newBlocked, userId, deviceId!);
}