showStroke method
Implementation
void showStroke(Color color, double width, {Vector2? offset}) {
if (_strockePaint != null &&
_strokeWidth == width &&
_strockePaint?.color == color) {
return;
}
_strokeWidth = width;
_strokePosition = Vector2.all(-_strokeWidth);
if (offset != null) {
_strokePosition += offset;
}
_strokeSize = Vector2.zero();
_strockePaint = Paint()
..color = color
..colorFilter = ColorFilter.mode(
color,
BlendMode.srcATop,
);
}