getCost method

double getCost(
  1. DebtType type
)

Get cost for a debt type.

Implementation

double getCost(DebtType type) => costs[type] ?? 0.0;