getH3UnidirectionalEdgesFromHexagon method

  1. @override
List<BigInt> getH3UnidirectionalEdgesFromHexagon(
  1. BigInt edgeIndex
)
override

Get all of the unidirectional edges with the given H3 index as the origin (i.e. an edge to every neighbor)

Implementation

@override
List<BigInt> getH3UnidirectionalEdgesFromHexagon(BigInt edgeIndex) {
  return h3_js
      .getH3UnidirectionalEdgesFromHexagon(edgeIndex.toRadixString(16))
      .cast<String>()
      .map((e) => e.toBigInt())
      .toList();
}