setBarcodeFormats method

Future<int> setBarcodeFormats(
  1. int formats
)

Sets the barcode formats to be detected.

  • formats: A bitwise combination of barcode formats (see BarcodeFormat). On web, values are automatically converted to JavaScript BigInt to support the full 64-bit range.

Returns 0 on success, or an error code on failure.

Implementation

Future<int> setBarcodeFormats(int formats) {
  return BarcodeSdkPlatform.instance.setBarcodeFormats(formats);
}