append static method

String append(
  1. String s,
  2. String delimiter,
  3. DOMAttribute? attribute, {
  4. DOMContext? domContext,
  5. bool resolveDSX = false,
})

Implementation

static String append(String s, String delimiter, DOMAttribute? attribute,
    {DOMContext? domContext, bool resolveDSX = false}) {
  if (attribute == null) return s;
  var append =
      attribute.buildHTML(domContext: domContext, resolveDSX: resolveDSX);
  if (append.isEmpty) return s;
  return s + delimiter + append;
}