removeUserFromBlockList method

Future<void> removeUserFromBlockList(
  1. String userId
)

Removes the contact from the block ids.

Param userId The contact to be removed from the block list.

Throws A description of the exception. See ChatError.

Implementation

Future<void> removeUserFromBlockList(String userId) async {
  Map req = {'username': userId};
  Map result = await _channel.invokeMethod(
    ChatMethodKeys.removeUserFromBlockList,
    req,
  );
  try {
    ChatError.hasErrorFromResult(result);
  } on ChatError catch (e) {
    throw e;
  }
}