unSubscribe method Null safety
Unsubscribes from a user's presence states.
Param members
The array of IDs of users whose presence states you want to unsubscribe from.
Throws A description of the exception. See {@link EMError}.
Implementation
Future<void> unSubscribe({
required List<String> members,
}) async {
Map req = {'members': members};
Map result =
await _channel.invokeMethod(ChatMethodKeys.presenceUnsubscribe, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}