delete method Null safety

void delete()

Deletes this node and any children from underlying storage.

After a node has been deleted, all calls on it and its children have no effect and do not result in an error. Calls on a deleted node that return a Node or property return an already-deleted object.


void delete() {