close method
Implementation
@override
Future<void> close() async {
if (_handle != null) {
try {
bindings.phidgetClose(_handle!);
} catch (_) {}
final pDelete = calloc<bindings.PhidgetHandle>();
pDelete.value = _handle!;
try {
bindings.digitalOutputDelete(pDelete);
} finally {
calloc.free(pDelete);
}
_handle = null;
}
_isAttached = false;
}