head abstract method

RoutePath head(
  1. double advance
)

@brief Returns the leading segment of the route.

Returns the portion of the route from the start up to the specified advance distance along the route. If advance exceeds the total route length, the entire route is returned.

@param advance Distance along the route (in meters). @return The covered (passed) segment of the route (from start to advance), or nil if the segment is empty.

Dart code snippet: @snippet route_manager_example.dart dart_RoutePath_head

Implementation

RoutePath head(double advance);