barcodeScanner method

  1. @Deprecated('Use [google_mlkit_barcode_scanning] plugin instead of [google_ml_kit].')
BarcodeScanner barcodeScanner([
  1. List<BarcodeFormat>? formatList
])

Returns instance of BarcodeScanner. By default it searches the input image for all BarcodeFormats. To limit the search model to specific BarcodeFormat pass list of BarcodeFormat as argument.

Implementation

@Deprecated(
    'Use [google_mlkit_barcode_scanning] plugin instead of [google_ml_kit].')
BarcodeScanner barcodeScanner([List<BarcodeFormat>? formatList]) {
  return BarcodeScanner(formats: formatList ?? [BarcodeFormat.all]);
}