setViewpointCenterCancelable method

CancelableOperation<bool> setViewpointCenterCancelable(
  1. ArcGISPoint center,
  2. {double? scale}
)

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

Implementation

CancelableOperation<bool> setViewpointCenterCancelable(ArcGISPoint center,
    {double? scale}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MapView_setViewpointCenterCombined(
        _handle, center._handle, scale, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsBool()!);
}