willUnmount method

void willUnmount()

Called before the removal of this State from the tree.

Flowing downwards

Implementation

void willUnmount() => _isMounted = false;