backgroundColor property

  1. @override
FWidgetStateMap<Color?> backgroundColor
final

The item's background color.

It is applied to the entire item, including margin. Since it is applied before decoration in the z-layer, it is not visible if decoration has a background color.

This is useful for setting a background color when margin is not zero.

Supported states:

Implementation

@override
final FWidgetStateMap<Color?> backgroundColor;