setShorthandOverflow static method

void setShorthandOverflow(
  1. Map<String, String?> properties,
  2. String shorthandValue
)

Implementation

static void setShorthandOverflow(Map<String, String?> properties, String shorthandValue) {
  List<String> values = _splitBySpace(shorthandValue);
  if (values.length == 1) {
    properties[OVERFLOW_Y] = properties[OVERFLOW_X] = values[0];
  } else if (values.length == 2) {
    properties[OVERFLOW_X] = values[0];
    properties[OVERFLOW_Y] = values[1];
  }
}