apply<T extends DataGridRow> method
Apply this event's transformation to the state. Returns the new state, or null if no state change should occur. Can return a Future for async operations.
Implementation
@override
DataGridState<T>? apply<T extends DataGridRow>(EventContext<T> context) {
final groupedColumns = List<int>.from(context.state.group.groupedColumnIds);
groupedColumns.remove(columnId);
return context.state.copyWith(
group: context.state.group.copyWith(groupedColumnIds: groupedColumns),
);
}