getMinDistance method

int getMinDistance()

Implementation

int getMinDistance() {
  final pDist = calloc<Uint32>();
  try {
    bindings.distanceSensorGetMinDistance(_handle!, pDist);
    return pDist.value;
  } catch (e) {
    throw PhidgetException('An error occurred getting the minimum distance: $e');
  } finally {
    calloc.free(pDist);
  }
}