onPopPage property

bool Function(BuildContext context, BeamerDelegate<BeamState> delegate, BeamPage poppedPage) onPopPage
final

Overrides the default pop by executing an arbitrary closure. Mainly used to manually update the delegate.currentBeamLocation state.

poppedPage is this BeamPage.

Return false (rarely used) to prevent any navigation from happening, otherwise return true.

More powerful than popToNamed.

Implementation

final bool Function(
  BuildContext context,
  BeamerDelegate delegate,
  BeamPage poppedPage,
) onPopPage;