pageRowsInfoTitle method

  1. @override
String pageRowsInfoTitle (int firstRow, int lastRow, int rowCount, 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;
  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));
}