color property Null safety

Color color

The ink's color.

Implementation

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

Implementation

set color(Color value) {
  if (value == _color) {
    return;
  }
  _color = value;
  controller.markNeedsPaint();
}