pageRowsInfoTitle method

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

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;
  assert(text != null, 'A $_localeName localization was not found for pageRowsInfoTitle or pageRowsInfoTitleApproximate');
  return text
    .replaceFirst(r'$firstRow', formatDecimal(firstRow))
    .replaceFirst(r'$lastRow', formatDecimal(lastRow))
    .replaceFirst(r'$rowCount', formatDecimal(rowCount));
}