backgroundColor property

Color? backgroundColor
final

The button background fill color. If not provided, defaults to SnackBarThemeData.actionBackgroundColor.

If backgroundColor is a MaterialStateColor, then the text color will be resolved against the set of MaterialStates that the action text is in, thus allowing for different colors for the states.

Implementation

final Color? backgroundColor;