getState method
Implementation
bool getState() {
final pState = calloc<Int32>();
try {
bindings.digitalOutputGetState(_handle!, pState);
return pState.value == 1;
} catch (e) {
throw PhidgetException('An error occurred getting the state: $e');
} finally {
calloc.free(pState);
}
}