setViewpointCenterCancelable method
- ArcGISPoint center,
- {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()!);
}