removeUserFromBlockList method Null safety
- String username
Removes the contact from the block list.
Param username
The contact to be removed from the block list.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> removeUserFromBlockList(String username) async {
Map req = {'username': username};
Map result = await _channel.invokeMethod(
ChatMethodKeys.removeUserFromBlockList, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}