setPaint method

void setPaint(
  1. T paintId,
  2. Paint paint
)

Sets a paint on the collection.

Implementation

void setPaint(T paintId, Paint paint) {
  _paints[paintId] = paint;
}