getAddedCost method

double getAddedCost(
  1. {required String attributeName}
)

Gets added cost attribute value.

In case when attribute's name can not be found 0.0 will be returned.

Parameters:

  • attributeName — The name of the cost attribute.

Return Value: The value of added cost.

Implementation

double getAddedCost({required String attributeName}) {
  final coreAttributeName = _CString(attributeName);
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Stop_getAddedCost(
        _handle, coreAttributeName.bytes, errorHandler);
  });
}