removeRegion method
Removes the sub-texture reference with the specified name
from the
texture atlas. If the region exists, its corresponding GSubTexture
object will be disposed and removed from the atlas. If the region doesn't
exist, nothing happens.
Implementation
void removeRegion(String name) {
var subTexture = _subTextures![name];
subTexture?.dispose();
_subTextures!.remove(name);
_subTexturesNames = null;
}