setColor method

void setColor(
  1. Color color, {
  2. T? paintId,
})

Shortcut for changing the color of the paint.

Implementation

void setColor(Color color, {T? paintId}) {
  getPaint(paintId).color = color;
}