exportImageRepeat function

String exportImageRepeat(
  1. ImageRepeat imageRepeat
)

Implementation

String exportImageRepeat(ImageRepeat imageRepeat) {
  String rt = "noRepeat";
  if (imageRepeat == ImageRepeat.repeat) {
    rt = "repeat";
  }
  if (imageRepeat == ImageRepeat.repeatX) {
    rt = "repeatX";
  }
  if (imageRepeat == ImageRepeat.repeatY) {
    rt = "repeatY";
  }
  return rt;
}