setViewpointRotationCancelable method

CancelableOperation<bool> setViewpointRotationCancelable(
  1. {required double angleDegrees}
)

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

Implementation

CancelableOperation<bool> setViewpointRotationCancelable(
    {required double angleDegrees}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_MapView_setViewpointRotationAsync(
        _handle, angleDegrees, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsBool()!);
}