void onRemoving()

Callback used to notify a node that it is about to be removed.

Source

void onRemoving() {}