useIndicator property

bool? useIndicator

If true, adds a rounded NavigationIndicator behind the selected destination's icon.

The indicator's shape will be circular if labelType is NavigationRailLabelType.none, or a StadiumBorder if labelType is NavigationRailLabelType.all or NavigationRailLabelType.selected.

If null, defaults to NavigationRailThemeData.useIndicator. If that is null, defaults to ThemeData.useMaterial3.


final bool? useIndicator;