render method
Implementation
@mustCallSuper
@override
void render(Canvas canvas) {
final spriteBatch = _spriteBatch;
if (spriteBatch == null) {
return;
}
if (!identical(spriteBatch.atlas, _retainedAtlas)) {
_retainedAtlas = spriteBatch.atlas;
updateRetainedImages();
}
spriteBatch.render(
canvas,
blendMode: blendMode,
cullRect: cullRect,
paint: paint,
);
}