setInlineStyle method

void setInlineStyle(
  1. String property,
  2. String value
)

Implementation

void setInlineStyle(String property, String value) {
  // Current only for mark property is setting by inline style.
  inlineStyle[property] = value;
  // recalculate matching styles for element when inline styles are removed.
  if (value.isEmpty) {
    style.removeProperty(property, true);
    recalculateStyle();
  } else {
    style.setProperty(property, value, isImportant: true);
  }
}