getRoute method
Gets route.
Parameters:
facilityIndex
— The index of facility.incidentIndex
— The index of incident.
Return Value: A ClosestFacilityRoute between specified facility and incident.
Implementation
ClosestFacilityRoute? getRoute(
{required int facilityIndex, required int incidentIndex}) {
final objectHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ClosestFacilityResult_getRoute(
_handle, facilityIndex, incidentIndex, errorHandler);
});
return ClosestFacilityRoute._fromHandle(objectHandle);
}