applyCSS function

bool applyCSS(
  1. CssStyleDeclaration css,
  2. Element element, [
  3. List<Element>? extraElements
])

Applies css to element and extraElements list if present.

Implementation

bool applyCSS(CssStyleDeclaration css, Element element,
    [List<Element>? extraElements]) {
  if (!isCssNotEmpty(css)) return false;

  var apply = _applyCSS(css, element);

  if (extraElements != null) {
    for (var elem in extraElements) {
      var ok = _applyCSS(css, elem);
      apply |= ok;
    }
  }

  return apply;
}