setColor method

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

Shortcut for changing the color of the paint.

Implementation

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