buildDataAmountText method
Implementation
String buildDataAmountText() {
if (widget.getFooterRowText != null) {
return widget.getFooterRowText!(
_firstRowIndex + 1,
math.min(_firstRowIndex + widget.rowsPerPage, _rowCount),
widget.source.lastDetails?.filteredRows,
widget.source.lastDetails?.totalRows ?? 0,
);
}
final localizations = MaterialLocalizations.of(context);
var amountText = localizations.pageRowsInfoTitle(
_firstRowIndex + 1,
math.min(_firstRowIndex + widget.rowsPerPage, _rowCount),
_rowCount,
_rowCountApproximate,
);
if (widget.source.lastDetails != null &&
widget.source.lastDetails!.filteredRows != null) {
//Filtered data source show addtional information
amountText += ' from (${widget.source.lastDetails!.totalRows})';
}
return amountText;
}