getCostTo method

num? getCostTo(
  1. T destination
)

Gets the cost to a specific destination

Implementation

num? getCostTo(T destination) => distanceVector[destination];