deleteFromFriendList method Null safety
- {required List<
String> userIDList, - required FriendTypeEnum deleteType}
Delete friends
Parameter
userIDList The list of friend userIDs to be deleted
IDs are recommended to be up to 100 at a time, because too many data packets may be rejected by the background, and the background limit data packets to a maximum of 1M.
deleteType Delete Type
FriendType.V2TIM_FRIEND_TYPE_SINGLE: one-way friend
FriendType.V2TIM_FRIEND_TYPE_BOTH: two-way friend
Implementation
Future<V2TimValueCallback<List<V2TimFriendOperationResult>>>
deleteFromFriendList({
required List<String> userIDList,
required FriendTypeEnum deleteType,
}) async {
return ImFlutterPlatform.instance.deleteFromFriendList(
userIDList: userIDList,
deleteType: EnumUtils.convertFriendTypeEnum(deleteType));
}