h3ToCenterChild method

  1. @override
BigInt h3ToCenterChild(
  1. BigInt h3Index,
  2. int resolution
)
override

Get the center child of the given h3Index hexagon at a particular resolution

Returns 0 when result can't be calculated

Implementation

@override
BigInt h3ToCenterChild(BigInt h3Index, int resolution) {
  return _h3c.h3ToCenterChild(h3Index.toInt(), resolution).toBigInt();
}