putStyleProperty method

void putStyleProperty(
  1. String stylePropertyKey,
  2. String value
)

Implementation

void putStyleProperty(String stylePropertyKey, String value) {
  if (tag == null) {
    throw Exception("Cannot add style property to plaintext node!");
  }

  Tag t = tag!;
  t.styleProperties[stylePropertyKey] = value;
}