backgroundColor property Null safety

Color? backgroundColor
final

The color of the surface of this MaterialBanner.

If null, MaterialBannerThemeData.backgroundColor is used. If that is also null, ColorScheme.surface of ThemeData.colorScheme is used.

Implementation

final Color? backgroundColor;