tint method

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

Applies a color filter to the paint which will make things rendered with the paint looking like it was tinted with the given color.

Implementation

void tint(Color color, {T? paintId}) {
  getPaint(paintId).colorFilter = ColorFilter.mode(color, BlendMode.srcATop);
}