TableQuerySublayerSource constructor
Creates a table query sublayer source.
Parameters:
Implementation
factory TableQuerySublayerSource({
required String workspaceId,
required String sqlQuery,
required List<String> objectIdFieldNames,
}) {
_initializeArcGISEnvironmentIfNeeded();
final coreWorkspaceId = _CString(workspaceId);
final coreSqlQuery = _CString(sqlQuery);
final coreObjectIdFieldNames = objectIdFieldNames.toArray(
valueType: _ElementType.string,
);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore
.RT_TableQuerySublayerSource_createWithIdQueryAndObjectIdFieldNames(
coreWorkspaceId.bytes,
coreSqlQuery.bytes,
coreObjectIdFieldNames._handle,
errorHandler,
);
});
final TableQuerySublayerSource object =
TableQuerySublayerSource._withHandle(handle);
object._objectIdFieldNames.value.setCache(objectIdFieldNames);
return object;
}