fetchJoinedGroupCount method
Gets groups count of the current user joined from the server.
Return The count of groups joined by the current user.
Throws A description of the exception. See ChatError.
Implementation
Future<int> fetchJoinedGroupCount() async {
Map result =
await _channel.invokeMethod(ChatMethodKeys.fetchJoinedGroupCount);
try {
ChatError.hasErrorFromResult(result);
int count = result[ChatMethodKeys.fetchJoinedGroupCount];
return count;
} on ChatError catch (e) {
throw e;
}
}