1. @override
void onRemoving()

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

Source

@override
void onRemoving() {
  if (onRemovingCallback != null) {
    onRemovingCallback();
  }
}