resolveBackgroundRepeat static method

CSSBackgroundRepeatType resolveBackgroundRepeat(
  1. String value
)

Implementation

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