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