paginationToken<T, K> method
- String paginationToken
If the result of the initial sync (or subsequent sync) contains more than 100 records, the response would be paginated. It provides pagination token in the response. However, you do not have to use the pagination token manually to get the next batch, the SDK does that automatically until the sync is complete. Pagination token can be used in case you want to fetch only selected batches. It is especially useful if the sync process is interrupted midway (due to network issues, etc.). In such cases, this token can be used to restart the sync process from where it was interrupted.
Implementation
Future<T> paginationToken<T, K>(String paginationToken) {
final parameters = <String, String>{};
if (paginationToken != null && paginationToken.isNotEmpty) {
parameters['pagination_token'] = paginationToken;
}
return _syncRequest<T, K>(parameters);
}