backgroundColor property

Color? backgroundColor
final

The snack bar's background color.

If not specified, it will use SnackBarThemeData.backgroundColor of ThemeData.snackBarTheme. If that is not specified it will default to a dark variation of ColorScheme.surface for light themes, or ColorScheme.onSurface for dark themes.

Implementation

final Color? backgroundColor;