tint method
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);
}