getState method

bool getState()

Implementation

bool getState() {
  _ensureAttached();
  final pState = calloc<Int32>();
  try {
    bindings.checkPhidgetError(
        bindings.digitalInputGetState(_handle!, pState),
        'DigitalInput_getState');
    return pState.value == 1;
  } finally {
    calloc.free(pState);
  }
}