Describe the bug
PaneItemEpander Widget crashes the app when the Pane is collapsed.
To Reproduce
Steps to reproduce the behavior:
- Create PaneItemExpander
- Click on the Icon while Pane is collapsed
- 'This widget has been unmounted, so the State no longer has a context (and should be considered defunct). \n'
'Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.', thrown
Expected behavior
I expected the Navigation to not crash the entire application and throw an error.
Screenshots

Describe the bug
PaneItemEpander Widget crashes the app when the Pane is collapsed.
To Reproduce
Steps to reproduce the behavior:
'Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.', thrown
Expected behavior
I expected the Navigation to not crash the entire application and throw an error.
Screenshots