onSelectedIndexChange property

void Function(int)? onSelectedIndexChange
final

Callback function for when the index of a NavigationRail changes.

Implementation

final void Function(int)? onSelectedIndexChange;