setShorthandPlaceSelf static method

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

Implementation

static void setShorthandPlaceSelf(Map<String, String?> properties, String shorthandValue) {
  shorthandValue = shorthandValue.replaceAll(_slashRegExp, ' ');
  final List<String> values = _splitBySpace(shorthandValue);
  if (values.isEmpty) return;

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

  properties[ALIGN_SELF] = align;
  properties[JUSTIFY_SELF] = justify;
}