style method

DocumentBody style(
  1. List<String> styleList, {
  2. bool? removeIf,
})

The style global attribute contains CSS styling declarations to be applied to the element. Read more...

Implementation

DocumentBody style(List<String> styleList, {bool? removeIf}) {
  if (removeIf == true) {
    body.removeAttribute('style');
  } else {
    body.setAttribute('style', _html.listToSemicolons(styleList));
  }
  return this;
}