From 041e03fe6e7e623bb476a63b5acf0ff31f05b66f Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sat, 26 Sep 2020 11:57:37 +0200 Subject: [PATCH] SerialPortReader: respect pause & resume Ref: #4 --- lib/src/reader.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/reader.dart b/lib/src/reader.dart index e881840..4215929 100644 --- a/lib/src/reader.dart +++ b/lib/src/reader.dart @@ -83,6 +83,8 @@ class _SerialPortReaderImpl implements SerialPortReader { _controller ??= StreamController( onListen: _startRead, onCancel: _cancelRead, + onPause: _cancelRead, + onResume: _startRead, ); return _controller.stream; }