setDtr method
Drive the DTR (Data Terminal Ready) modem control line. Default implementation throws — production transports override.
Implementation
@override
Future<void> setDtr(bool active) async {
if (!isOpen) throw StateError('LibserialportSerialTransport not open');
_check(
_bindings.spSetDtr(_port!, active ? SpSignal.high : SpSignal.low),
'sp_set_dtr',
);
}