add method

void add(
  1. Sprite sprite
)

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