skipNextIntermediateDestination static method

GemError skipNextIntermediateDestination({
  1. 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

See also:

Implementation

static GemError skipNextIntermediateDestination({
  final TaskHandler? taskHandler,
}) {
  final OperationResult result = staticMethod(
    'NavigationService',
    'skipNextIntermediateDestination',
    args: taskHandler ?? <dynamic, dynamic>{},
  );

  return GemErrorExtension.fromCode(result['result']);
}