createParametersWithPortalItemCancelable method

CancelableOperation<RouteParameters> createParametersWithPortalItemCancelable(
  1. PortalItem portalItem
)

Cancelable version of createParametersWithPortalItem. See that method for more information.

Implementation

CancelableOperation<RouteParameters> createParametersWithPortalItemCancelable(
    PortalItem portalItem) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_RouteTask_createParametersWithPortalItemAsync(
        _handle, portalItem._handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsRouteParameters()!);
}