setShorthandMargin static method

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

Implementation

static void setShorthandMargin(Map<String, String?> properties, String shorthandValue) {
  List<String?>? values = _getEdgeValues(shorthandValue);
  if (values == null) return;

  properties[MARGIN_TOP] = values[0];
  properties[MARGIN_RIGHT] = values[1];
  properties[MARGIN_BOTTOM] = values[2];
  properties[MARGIN_LEFT] = values[3];
}