addWhiteList method Null safety
- @Deprecated("Switch to using addAllowList instead.")
@Deprecated("Switch to using addAllowList instead.")
Adds members to the allow list of the group.
Only the group owner or admin can call this method.
Param groupId
The group ID.
Param members
The members to be added to the allow list of the group.
Throws A description of the exception. See {@link EMError}.
Implementation
@Deprecated("Switch to using addAllowList instead.")
Future<void> addWhiteList(
String groupId,
List<String> members,
) async {
Map req = {'groupId': groupId, 'members': members};
Map result = await _channel.invokeMethod(ChatMethodKeys.addWhiteList, req);
try {
EMError.hasErrorFromResult(result);
} on EMError catch (e) {
throw e;
}
}