mergePaginatedResults method
T
mergePaginatedResults(
- T currentData,
- T newData
Defines the way paginated results should be combined This method should be implemented in the request itself. This is just a fallback, to throw an error if not implemented correctly.
Implementation
T mergePaginatedResults(T currentData, T newData) {
// just return default data and throw warning
log(
// ignore: unnecessary_this
'Please implement the mergePaginatedResults method in your request ${this.toString()} $url, to combine paginated results correctly.',
name: 'fetch_tray',
);
return [] as T;
}