onPopPage property
This gets called when the page is popped. You can use this to clean up
Implementation
final bool Function(
Route<dynamic> route,
// ignore: avoid_annotating_with_dynamic
dynamic result,
PageArgs<dynamic> pageArgs,
) onPopPage;