clear method
void
clear()
Implementation
void clear() {
for (var i = 0; i < element!.children.length; i++) {
element!.children.item(i)?.remove();
}
}
void clear() {
for (var i = 0; i < element!.children.length; i++) {
element!.children.item(i)?.remove();
}
}