getGroupSpecificationFromServer method Null safety
- @Deprecated("Switch to using fetchGroupInfoFromServer instead.")
- String groupId
@Deprecated("Switch to using fetchGroupInfoFromServer instead.")
Gets the group information from the server.
This method does not get member information. If member information is required, call {@link #fetchMemberListFromServer(String, int?, String?)}.
Param groupId
The group ID.
Return The group instance.
Throws A description of the exception. See {@link EMError}.
Implementation
@Deprecated("Switch to using fetchGroupInfoFromServer instead.")
Future<EMGroup> getGroupSpecificationFromServer(String groupId) async {
Map req = {'groupId': groupId};
Map result = await _channel.invokeMethod(
ChatMethodKeys.getGroupSpecificationFromServer, req);
try {
EMError.hasErrorFromResult(result);
return EMGroup.fromJson(
result[ChatMethodKeys.getGroupSpecificationFromServer]);
} on EMError catch (e) {
throw e;
}
}