remoteReloadRequired method
bool
remoteReloadRequired(
- int? rowsPerPage,
- int? firstRowIndex
)
Implementation
bool remoteReloadRequired(int? rowsPerPage, int? firstRowIndex) {
if (widget.source.requireRemoteReload()) {
//We only want to force the reload once
widget.source.forceRemoteReload = false;
return true;
}
final rowsPerPage0 = rowsPerPage ?? widget.rowsPerPage;
final firstRowIndexSafe = firstRowIndex ?? _firstRowIndex;
if (lastOrderColumn != widget.sortColumnIndex ||
lastOrderDirection != widget.sortAscending ||
lastRecordsByPage != rowsPerPage0 ||
lastOffset != firstRowIndexSafe) {
lastOrderColumn = widget.sortColumnIndex;
lastOrderDirection = widget.sortAscending;
lastRecordsByPage = rowsPerPage0;
lastOffset = firstRowIndexSafe;
return true;
}
return false;
}