setShorthandBorderRadius static method

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

Implementation

static void setShorthandBorderRadius(Map<String, String?> properties, String shorthandValue) {
  List<String?>? values = _getBorderRaidusValues(shorthandValue);

  if (values == null) return;

  properties[BORDER_TOP_LEFT_RADIUS] = values[0];
  properties[BORDER_TOP_RIGHT_RADIUS] = values[1];
  properties[BORDER_BOTTOM_RIGHT_RADIUS] = values[2];
  properties[BORDER_BOTTOM_LEFT_RADIUS] = values[3];
}