getCSSBackgroundRepeatName function
Implementation
String? getCSSBackgroundRepeatName(CSSBackgroundRepeat? repeat) {
if (repeat == null) return null;
switch (repeat) {
case CSSBackgroundRepeat.repeat:
return 'repeat';
case CSSBackgroundRepeat.repeatX:
return 'repeat-x';
case CSSBackgroundRepeat.repeatY:
return 'repeat-y';
case CSSBackgroundRepeat.noRepeat:
return 'no-repeat';
case CSSBackgroundRepeat.space:
return 'space';
case CSSBackgroundRepeat.round:
return 'round';
}
}