onSelectionChanging property

SelectionChangingCallback? onSelectionChanging
final

Invoked when the row is being selected or being unselected

This callback's return type is bool. So, if you want to cancel the selection on a row based on the condition, return false. Otherwise, return true.

Implementation

final SelectionChangingCallback? onSelectionChanging;