collapseAllGroup method

void collapseAllGroup()

Collapses all the groups in the SfDataGrid.

Implementation

void collapseAllGroup() {
  if (_dataGridStateDetails != null) {
    final DataGridConfiguration dataGridConfiguration =
        _dataGridStateDetails!();
    final Group grouping = dataGridConfiguration.group!;
    grouping.collapseAll(grouping);
    notifyDataGridPropertyChangeListeners(dataGridConfiguration.source,
        propertyName: 'grouping');
  }
}