color property

  1. @override
Color? get color
override

The color to paint behind the child.

This property should be preferred when the background is a simple color. For other cases, such as gradients or images, use the decoration property.

If the decoration is used, this property must be null. A background color may still be painted by the decoration even if this property is null.

Implementation

@override
Color? get color => $value.color;