solveRoute method
- RouteParameters routeParameters
Solves a route passing in a parameters object.
Parameters:
routeParameters
— The route parameters.
Return Value: A Future that returns a RouteResult type.
Implementation
Future<RouteResult> solveRoute(
RouteParameters routeParameters,
) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_RouteTask_solveRouteAsync(
_handle,
routeParameters._handle,
errorHandler,
);
});
return taskHandle.toFuture(
(element) => element.getValueAsRouteResult()!,
);
}