parseImageRepeat function
Implementation
ImageRepeat? parseImageRepeat(String? imageRepeatString) {
if (imageRepeatString == null) {
return null;
}
switch (imageRepeatString) {
case 'repeat':
return ImageRepeat.repeat;
case 'repeatX':
return ImageRepeat.repeatX;
case 'repeatY':
return ImageRepeat.repeatY;
case 'noRepeat':
return ImageRepeat.noRepeat;
default:
return ImageRepeat.noRepeat;
}
}