setShorthandFont static method

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

Implementation

static void setShorthandFont(Map<String, String?> properties, String shorthandValue) {
  List<String?>? values = _getFontValues(shorthandValue);
  if (values == null) return;
  properties[FONT_STYLE] = values[0];
  properties[FONT_WEIGHT] = values[1];
  properties[FONT_SIZE] = values[2];
  properties[LINE_HEIGHT] = values[3];
  properties[FONT_FAMILY] = values[4];
}