1. protected
  2. mustCallSuper
void detach()

Called when the RenderObject is removed from the tree.

Source

@protected
@mustCallSuper
void detach() { }