setInlineStyle method
Implementation
void setInlineStyle(String property, String value,
{String? baseHref, bool fromNative = false}) {
final bool enableBlink = ownerDocument.ownerView.enableBlink;
final bool validate = !(fromNative && enableBlink);
// 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);
// When Blink CSS is enabled, style cascading and validation happen on
// the native side. Avoid expensive Dart-side recalculation here.
if (!(fromNative && enableBlink)) {
recalculateStyle();
}
} else {
style.setProperty(property, value,
isImportant: true, baseHref: baseHref, validate: validate);
}
}