setBarcodeFormats method
Sets the barcode formats to be detected.
formats
: A bitwise OR combination of barcode format constants.
Returns 0
on success, or an error code on failure.
Implementation
Future<int> setBarcodeFormats(int formats) async {
return _barcodeManager.setBarcodeFormats(formats);
}