setShorthandPlaceItems static method

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

Implementation

static void setShorthandPlaceItems(Map<String, String?> properties, String shorthandValue) {
  // Normalize any slash separators and collapse whitespace
  shorthandValue = shorthandValue.replaceAll(_slashRegExp, ' ');
  List<String> values = _splitBySpace(shorthandValue);

  if (values.isEmpty) return;

  String align = values[0];
  String justify = values.length > 1 ? values[1] : align;

  properties[ALIGN_ITEMS] = align;
  properties[JUSTIFY_ITEMS] = justify;
}