[Dart] DOM Element Remove All Children
Question:
Assume that elm is a dom element, how to remove all children elements (nodes) of elm in Dart programming language?
Answer:
elm.children.clear();
References:
[1] | Removing all child elements from an element |
[2] | JavaScript Remove All Children of a DOM Element |