backgroundColor property

MaterialStateProperty<Color?>? backgroundColor
final

The search bar's background fill color.

If null, the value of SearchBarThemeData.backgroundColor will be used. If this is also null, then the default value is ColorScheme.surface.

Implementation

final MaterialStateProperty<Color?>? backgroundColor;