color property

Color? get color

The background color, or null for a transparent background.

Implementation

Color? get color => _color;
set color (Color? value)

Sets the background color.

Implementation

set color(Color? value) {
  if (_color == value) return;
  _color = value;
  _cachedBgStyle = null;
}