backgroundColor property

Color? backgroundColor
final

The color with which to fill the rectangle. If a backgroundColor is not specified, the theme's ThemeData.primaryColorLight is used with dark foreground colors, and ThemeData.primaryColorDark with light foreground colors.

Implementation

final Color? backgroundColor;