getRes0Indexes method

  1. @override
List<BigInt> getRes0Indexes()
override

Returns all H3 indexes at resolution 0. As every index at every resolution > 0 is the descendant of a res 0 index, this can be used with h3ToChildren to iterate over H3 indexes at any resolution.

Implementation

@override
List<BigInt> getRes0Indexes() {
  return using((arena) {
    final size = _h3c.res0IndexCount();
    final out = arena<Uint64>(size);
    _h3c.getRes0Indexes(out);
    return out.asTypedList(size).map((e) => e.toBigInt()).toList();
  });
}