add method
add sprite to sprite batch map with asset name as key
Implementation
void add(Sprite sprite) {
spriteBatchMap
.putIfAbsent(sprite.imagePath, () => SpriteBatch(sprite.image!))
.add(sprite);
}
add sprite to sprite batch map with asset name as key
void add(Sprite sprite) {
spriteBatchMap
.putIfAbsent(sprite.imagePath, () => SpriteBatch(sprite.image!))
.add(sprite);
}