backgroundColor property Null safety
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 ColorScheme.surface of ThemeData.colorScheme.
Implementation
final Color? backgroundColor;