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) {
if (context.state.selection.mode == SelectionMode.none &&
context.state.selection.activeCellId == null) {
return null;
}
return NavigateCellEvent(CellNavDirection.down).apply(context);
}