backgroundColor property
final
The button background fill color. If not provided, defaults to SnackBarThemeData.actionBackgroundColor.
If backgroundColor is a WidgetStateColor, then the text color will be resolved against the set of WidgetStates that the action text is in, thus allowing for different colors for the states.
Implementation
final Color? backgroundColor;