I've use this package to keep getting a data. i want to close the steam after getting a happy data.
FlutterBarcodeScanner.getBarcodeStreamReceiver(
'#ff6666', 'Cancel', true, ScanMode.BARCODE)!
.listen((res) async {
if(res == happyData) {
// close the steam
}
}));
I've use this package to keep getting a data. i want to close the steam after getting a happy data. FlutterBarcodeScanner.getBarcodeStreamReceiver( '#ff6666', 'Cancel', true, ScanMode.BARCODE)! .listen((res) async { if(res == happyData) { // close the steam } }));