pageRowsInfoTitle method

  1. @override
String pageRowsInfoTitle(
  1. int firstRow,
  2. int lastRow,
  3. int rowCount,
  4. bool rowCountIsApproximate
)
override

Title for the PaginatedDataTable's row info footer.

Implementation

@override
String pageRowsInfoTitle(int firstRow, int lastRow, int rowCount, bool rowCountIsApproximate) {
  String? text = rowCountIsApproximate ? pageRowsInfoTitleApproximateRaw : null;
  text ??= pageRowsInfoTitleRaw;
  return text
    .replaceFirst(r'$firstRow', formatDecimal(firstRow))
    .replaceFirst(r'$lastRow', formatDecimal(lastRow))
    .replaceFirst(r'$rowCount', formatDecimal(rowCount));
}