getAddedCost method

double getAddedCost({
  1. required String attributeName,
})

Gets added cost attribute value.

Returns added cost value for given impedance or accumulate attribute.

Parameters:

  • attributeName — The name of attribute.

Return Value: The value of added cost.

Implementation

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