getSingleSprite method
Implementation
TileModelSprite? 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;
}
}