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