getCost method

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

Gets cost.

Returns the associated cost for this attribute name.

Parameters:

  • attributeName — The name of the attribute name e.g. "Minutes" or "TravelTime".

Return Value: A value of cost.