render method
Implementation
@override
void render(Canvas canvas) {
super.render(canvas);
if (isVisible && !isRemoving) {
if (_strockePaint != null) {
sprite?.render(
canvas,
size: _strokeSize,
position: _strokePosition + (spriteOffset ?? Vector2.zero()),
overridePaint: _strockePaint,
);
}
sprite?.render(
canvas,
position: spriteOffset,
size: size,
overridePaint: paint,
);
}
}