onSelectionChanged property
Called when the selection changes. With
PrismCompactBehavior.replace on compact windows, the built-in back
button reports null when the user dismisses the detail.
Implementation
final ValueChanged<int?>? onSelectionChanged;