hopCount property

int get hopCount

Gets the hop count (path length - 1)

Implementation

int get hopCount => path.length - 1;