resolveBackgroundRepeat static method

ImageRepeat resolveBackgroundRepeat(
  1. String value
)

Implementation

static ImageRepeat resolveBackgroundRepeat(String value) {
  switch (value) {
    case REPEAT_X:
      return ImageRepeat.repeatX;
    case REPEAT_Y:
      return ImageRepeat.repeatY;
    case NO_REPEAT:
      return ImageRepeat.noRepeat;
    case REPEAT:
    default:
      return ImageRepeat.repeat;
  }
}