Many users try to modify the SpriteGroupComponent.sprites map, but that doesn't work since it has to go through the setter, so this PR makes the returned map from the getter unmodifiable.
You can either set it by using the setter or set a particular sprite by using the newly created updateSprite method.
Description
Many users try to modify the
SpriteGroupComponent.sprites
map, but that doesn't work since it has to go through the setter, so this PR makes the returned map from the getter unmodifiable. You can either set it by using the setter or set a particular sprite by using the newly createdupdateSprite
method.Checklist
docs
and added dartdoc comments with///
.examples
ordocs
.Breaking Change?
Related Issues