color property Null safety

Color color
inherited

The background color.

Implementation

Color get color => _color;
void color=(Color value)
inherited

Implementation

set color(Color value) {
  assert(value != null);
  if (color == value) {
    return;
  }
  _color = value;
  markNeedsPaint();
}