expandGroupsAtLevel method

void expandGroupsAtLevel(
  1. int level
)

Expands the groups based on the respective level.

Implementation

void expandGroupsAtLevel(int level) {
  if (_dataGridStateDetails != null) {
    final DataGridConfiguration dataGridConfiguration =
        _dataGridStateDetails!();
    final Group grouping = _dataGridStateDetails!().group!;
    final int length = dataGridConfiguration.source.groupedColumns.length;
    if (level > 0 && level <= length) {
      grouping.expandGroupsAtLevel(level, grouping);
      notifyDataGridPropertyChangeListeners(dataGridConfiguration.source,
          propertyName: 'grouping');
    }
  }
}