backgroundColor property

Color backgroundColor
final

Sets the color of the Container that holds all of the NavigationRail's contents.

The default value is NavigationRailThemeData.backgroundColor. If NavigationRailThemeData.backgroundColor is null, then the default value is based on ThemeData.colorScheme.surface.

Implementation

final Color backgroundColor