getAddedCost method
- required String attributeName,
Gets added cost.
Get the amount of additional cost that has been added for a particular attribute on this Stop. If no cost has been added, or an incorrect name is specified, a value of zero will be returned.
Parameters:
attributeName
— The name of attribute.
Return Value: A value of added cost.
Implementation
double getAddedCost({
required String attributeName,
}) {
final coreAttributeName = _CString(attributeName);
return _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_PointBarrier_getAddedCost(
_handle,
coreAttributeName.bytes,
errorHandler,
);
});
}