setShorthandBackgroundPosition static method

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

Implementation

static void setShorthandBackgroundPosition(Map<String, String?> properties, String shorthandValue) {
  List<String> positions = CSSPosition.parsePositionShorthand(shorthandValue);
  properties[BACKGROUND_POSITION_X] = positions[0];
  properties[BACKGROUND_POSITION_Y] = positions[1];
}