setShorthandFlex static method

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

Implementation

static void setShorthandFlex(Map<String, String?> properties, String shorthandValue) {
  List<String>? values = _getFlexValues(shorthandValue);
  if (values == null) return;
  properties[FLEX_GROW] = values[0];
  properties[FLEX_SHRINK] = values[1];
  properties[FLEX_BASIS] = values[2];
}