head abstract method

RoutePath head(
  1. double advance
)

Returns the leading segment of the route up to advance meters. advance distance along route (meters). Returns route head segment.

Example:

// Get head of route (first 10 meters)
RoutePath? headPath = path.head(10.0);
if (headPath != null) {
 print("Head path length: ${headPath.length} meters");
}

Implementation

RoutePath head(double advance);