SerialPortReader class abstract
Asynchronous serial port reader.
Provides a stream that can be listened to asynchronously receive data whenever available.
Note: The reader must be closed using close() when done with reading.
Constructors
- SerialPortReader(SerialPort port, {int? timeout})
-
Creates a reader for the port.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- port → SerialPort
-
Gets the port the reader operates on.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stream
→ Stream<
Uint8List> -
Gets a stream of data.
no setter
Methods
-
close(
) → void - Closes the stream.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited