A function called when the app goes back to the previous page.
bool Function(Route<dynamic> route, dynamic result)? willPopPage;