setShorthandPadding static method

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

Implementation

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

  properties[PADDING_TOP] = values[0];
  properties[PADDING_RIGHT] = values[1];
  properties[PADDING_BOTTOM] = values[2];
  properties[PADDING_LEFT] = values[3];
}