onUnmount method

void onUnmount()

Called when the component is unmounted from the DOM.

Override this method to clean up resources (e.g., cancel subscriptions).

Implementation

void onUnmount() {}