getPosition method

double getPosition()

Implementation

double getPosition() {
  _ensureOpen();
  final pPos = calloc<Double>();
  try {
    bindings.checkPhidgetError(
        bindings.stepperGetPosition(_handle!, pPos), 'Stepper.getPosition');
    return pPos.value;
  } finally {
    calloc.free(pPos);
  }
}