selectedRowCount property

  1. @override
int get selectedRowCount
override

Called to obtain the number of rows that are currently selected.

If the selected row count changes, call notifyListeners.

Selected rows are those whose DataRow.selected property is set to true.

Implementation

@override
int get selectedRowCount => _selectionState == SelectionState.none
    ? 0
    : _selectionState == SelectionState.include
        ? _selectionRowKeys.length
        : _totalRows - _selectionRowKeys.length;