getListByIds method
Gets a list of data items retrieved by given unique ids.
correlationId
(optional) transaction id to trace execution through call chain.ids
ids of data items to be retrieved Return Future that receives a data list Throw error.
Implementation
Future<List<T>> getListByIds(String? correlationId, List<K> ids) {
var filter = (T item) {
return ids.contains(item.id);
};
return getListByFilterEx(correlationId, filter, null, null);
}