updateSprites method
Implementation
void updateSprites(String path, String name) {
if(sprites.isEmpty && !kIsWeb){
fileName = name;
}
else{
fileName = 'untitled';
}
_loadImage(path).then((value){
sprites.add(
SpriteImage(
sprite: value,
name: name
)
);
update();
});
}