isMemberInWhiteListFromServer method Null safety

  1. @Deprecated("Switch to using isMemberInAllowListFromServer instead.")
Future<bool> isMemberInWhiteListFromServer(
  1. String groupId
)
@Deprecated("Switch to using isMemberInAllowListFromServer instead.")

Gets whether the member is on the allow list of the group.

Param groupId The group ID.

Return A Boolean value to indicate whether the current user is on the allow list of the group;

Throws A description of the exception. See {@link EMError}.

Implementation

@Deprecated("Switch to using isMemberInAllowListFromServer instead.")
Future<bool> isMemberInWhiteListFromServer(String groupId) async {
  Map req = {'groupId': groupId};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.isMemberInWhiteListFromServer, req);
  try {
    EMError.hasErrorFromResult(result);
    return result.boolValue(ChatMethodKeys.isMemberInWhiteListFromServer);
  } on EMError catch (e) {
    throw e;
  }
}