skipNextIntermediateDestination static method
- TaskHandler? taskHandler,
Next intermediate waypoint skip.
Manually removes the next intermediate destination from the active navigation
route and triggers route recalculation to the following waypoint or final
destination. The updated route is delivered via the onRouteUpdated callback.
Useful when the user decides to skip a planned stop.
Parameters
taskHandler: Optional handler for the navigation session. If omitted, applies to the active session.
Returns
- (
GemError) Result code:- GemError.success: Waypoint skipped successfully.
- GemError.notFound: No intermediate waypoints remaining on route.
See also:
- startNavigation - Register
onRouteUpdatedto receive recalculated route. Also seeonSkipNextIntermediateDestinationDetectedcallback to detect user skipping behavior. - getIntermediateWaypointDropParameters - Automatic waypoint drop configuration.
Implementation
static GemError skipNextIntermediateDestination({
final TaskHandler? taskHandler,
}) {
final OperationResult result = staticMethod(
'NavigationService',
'skipNextIntermediateDestination',
args: taskHandler ?? <dynamic, dynamic>{},
);
return GemErrorExtension.fromCode(result['result']);
}