소스 검색

fixed added removed in comparewith

fares 10 달 전
부모
커밋
7ea1e3905d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      lib/handlers/file_upload_api.dart

+ 2 - 2
lib/handlers/file_upload_api.dart

@@ -666,8 +666,8 @@ extension CompareIterables<T> on Iterable<T> {
     final Set<T> thisSet = this.toSet();
     final Set<T> otherSet = other.toSet();
 
-    final Set<T> added = otherSet.difference(thisSet);
-    final Set<T> removed = thisSet.difference(otherSet);
+    final Set<T> removed = otherSet.difference(thisSet);
+    final Set<T> added = thisSet.difference(otherSet);
 
     return (added, removed);
   }