onPop property

(void Function()?) onPop
final

Optional function to be called when clicking the back button on the app bar If not provided, the default behavior is to pop the current route from the navigator

Implementation

final void Function()? onPop;