backgroundColor property

Color backgroundColor
final

The Snackbar's background color. If not specified it will use ThemeData.snackBarTheme.backgroundColor. 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