style method

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

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

Implementation

WidgetElement style(List<String> styleList, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr =
        VirtualAttr('style', _html.listToSemicolons(styleList));
    node.attrs!.add(attr);
  }
  return this;
}