fetchVersions method
Gets a list of all versions on the service.
If the service isn't branch versioned, an ArcGISExceptionType.mappingBranchVersioningNotSupportedByService is thrown.
Return Value: A Future that returns a List containing all visible versions on the service.
Implementation
Future<List<ServiceVersionInfo>> fetchVersions() {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ServiceGeodatabase_fetchVersionsAsync(
_handle,
errorHandler,
);
});
return taskHandle.toFuture(
(element) => element.getValueAsList()!,
);
}