setTrackDataDepartureAndDestination method
- Coordinates departure,
- Coordinates destination
Truncates the track data between specified departure and destination coordinates.
Set departure and destination to the same coordinate to create a circuit.
Parameters
departure: Coordinates for the new track start.destination: Coordinates for the new track end.
Implementation
void setTrackDataDepartureAndDestination(
Coordinates departure,
Coordinates destination,
) {
objectMethod(
pointerId,
'Landmark',
'setWaypointTrackDepartureAndDestination',
args: <String, dynamic>{
'first': departure.toJson(),
'second': destination.toJson(),
},
);
}