startSerial method
Once this method is called, Operations like openPort,closePort etc... result will be return from this stream Providing InputStream and OutputStream startSerial : return type SerialResponse
Implementation
@override
Stream<SerialResponse> startSerial() {
Stream<SerialResponse> data = eventChannel.receiveBroadcastStream().map(
(dynamic result) =>
SerialResponse.fromMap(Map<String, String>.from(result)));
return data;
}