getSingleSprite method
Implementation
TileSprite? getSingleSprite() {
if (sprites.length > 1 && sprites.length == spritesProportion.length) {
int randomValue = _random.nextInt(maxRandomValue);
int index = inRange(randomValue);
return sprites[index];
} else {
return sprites.first;
}
}