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');
  }
  _blocked = newBlocked;
  await client.database
      ?.setBlockedUserCrossSigningKey(newBlocked, userId, publicKey!);
}