setShorthandTextDecoration static method

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

Implementation

static void setShorthandTextDecoration(Map<String, String?> properties, String shorthandValue) {
  List<String?>? values = _getTextDecorationValues(shorthandValue);
  if (values == null) return;

  properties[TEXT_DECORATION_LINE] = values[0];
  properties[TEXT_DECORATION_COLOR] = values[1];
  properties[TEXT_DECORATION_STYLE] = values[2];
}