Widget.inDestruction

bool inDestruction()

Returns whether the widget is currently being destroyed.

This information can sometimes be used to avoid doing unnecessary work.

Returns

true if widget is being destroyed