setRowGroup method

  1. @override
void setRowGroup(
  1. PlutoRowGroupDelegate? delegate, {
  2. bool notify = true,
})
inherited

Set up a delegate for grouping rows.

As a class that implements PlutoRowGroupDelegate, it defines functions necessary for row grouping.

PlutoRowGroupTreeDelegate allows grouping of complex depths.

PlutoRowGroupByColumnDelegate groups rows by column.

Implementation

@override
void setRowGroup(
  PlutoRowGroupDelegate? delegate, {
  bool notify = true,
}) {
  _state._rowGroupDelegate = delegate;

  _updateRowGroup();

  notifyListeners(notify, setRowGroup.hashCode);
}