compareAsync<T extends ObjectComparable> static method
Compares two lists of objects and returns the result.
The oldList
parameter represents the old list of objects.
The newList
parameter represents the new list of objects.
The fieldId
parameter represents the field used to identify objects.
Returns an instance of CompareListsOfObjectResult containing the added, removed, and updated objects.
Implementation
static Future<CompareListsOfObjectResult<T>>
compareAsync<T extends ObjectComparable>({
required List<T> oldList,
required List<T> newList,
required String fieldId,
}) {
return compute(_computeCompare<T>, {
'oldList': oldList,
'newList': newList,
'fieldId': fieldId,
});
}