initStreams method
void
initStreams()
Implementation
void initStreams() {
streamSubscription = streamController.stream
.bufferTime(const Duration(seconds: 1))
.where((imageList) => imageList.isNotEmpty)
.map((imageList) => imageList.last)
.listen(convertsCameraImage);
receivePort
.asBroadcastStream()
.whereType<InputImage>()
.asyncMap(
(InputImage inputImage) => barcodeScanner.processImage(inputImage))
.where((List<Barcode> barcodeList) => barcodeList.isNotEmpty)
.listen(widget.onImage);
}