unsubscribe method
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 ChatError.
Implementation
Future<void> unsubscribe({
required List<String> members,
}) async {
Map req = {'members': members};
Map result =
await _channel.invokeMethod(ChatMethodKeys.presenceUnsubscribe, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}