isValidBackgroundSizeValue static method

bool isValidBackgroundSizeValue(
  1. String value
)

Implementation

static bool isValidBackgroundSizeValue(String value) {
  return value == AUTO ||
      value == CONTAIN ||
      value == COVER ||
      value == FIT_WIDTH ||
      value == FIT_HEIGTH ||
      value == SCALE_DOWN ||
      value == FILL ||
      CSSLength.isNonNegativeLength(value) ||
      CSSPercentage.isNonNegativePercentage(value);
}