onExitedFunc property

Function? onExitedFunc
final

This method will be called after one frame after removing the page from the stack this is useful for cleaning up resources that are not needed anymore like closing a stream or a controller or for example if you want to show a snackbar after the page was removed you can use this method to show the snackbar

Implementation

final Function? onExitedFunc;