selectedRowCountTitle method Null safety

  1. @override
String selectedRowCountTitle(
  1. int selectedRowCount
)
override

Title for the PaginatedDataTable's selected row count header.

Implementation

@override
String selectedRowCountTitle(int selectedRowCount) {
  switch (selectedRowCount) {
    case 0:
      return 'No items selected';
    case 1:
      return '1 item selected';
    default:
      return '$selectedRowCount items selected';
  }
}