remove method
Implementation
@override
void remove(DomRenderObject child) {
if (!isAttached) {
removeChild(child);
} else {
// The parent removes the child's nodes, but only this fragment can unlink it from its children.
_unlinkChild(child);
parent!.remove(child);
}
}