Reading barcodes is a key feature of many business applications. When using ML Kit's barcode scanning API, your app can automatically recognize most of the standard barcode formats, including QR codes, EAN-13, and ISBN codes.
The detection of a barcode happens on the device, so it doesn't require a network connection.
A Barcode object contains several properties, including URLs, emails, geopoints, and calendar events, but most barcodes have a displayValue (the number you find under the barcode on a book, for instance).
The steps to scan a barcode are similar to those required when recognizing text from an image: you need to get an instance of FirebaseVision, then retrieve a FirebaseVisionImage, and then obtain a BarcodeDetector from the FirebaseVision instance. You did this with the following instructions:
final FirebaseVision vision = FirebaseVision.instance;
final FirebaseVisionImage visionImage = FirebaseVisionImage...