mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Get conversation message
This commit is contained in:
@ -11,4 +11,17 @@ List<int> listToIntList(List<dynamic> srcList){
|
||||
});
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
/// Find the list of missing elements of a [testList] from a [srcList]
|
||||
List<T> findMissingFromList<T>(List<T> srcList, List<T>testList) {
|
||||
|
||||
List<T> dest = List();
|
||||
|
||||
testList.forEach((f){
|
||||
if(!srcList.contains(f) && !dest.contains(f))
|
||||
dest.add(f);
|
||||
});
|
||||
|
||||
return dest;
|
||||
}
|
Reference in New Issue
Block a user