onNavigationCancellation method

Future<void> onNavigationCancellation(
  1. OnNavigationCancellationCallback callback
)

Sets a callback that will be notified when the navigation is cancelled. This may happen due to user interaction or a call to stopNavigation.

Implementation

Future<void> onNavigationCancellation(
    OnNavigationCancellationCallback callback) async {
  _onNavigationCancellationCallback = callback;
}