useIndicator property

bool? useIndicator
final

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.

Implementation

final bool? useIndicator;