OrderBy constructor
Creates a new order by object.
Parameters:
fieldName
— Name of the field.sortOrder
— The order.
Implementation
factory OrderBy({
String fieldName = '',
SortOrder sortOrder = SortOrder.ascending,
}) {
_initializeArcGISEnvironmentIfNeeded();
final coreFieldName = _CString(fieldName);
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_OrderBy_createWith(
coreFieldName.bytes,
sortOrder.coreValue,
errorHandler,
);
});
return OrderBy._withHandle(handle);
}