ScanOptions constructor

const ScanOptions({
  1. List<BarcodeFormat> restrictFormat = const [],
  2. int useCamera = -1,
  3. AndroidOptions android = const AndroidOptions(),
  4. bool autoEnableFlash = false,
  5. Map<String, String> strings = const {'cancel' : 'Cancel', 'flash_on' : 'Flash on', 'flash_off' : 'Flash off'},
})

Create a object which represents the scanner options

Implementation

const ScanOptions({
  this.restrictFormat = const [],
  this.useCamera = -1,
  this.android = const AndroidOptions(),
  this.autoEnableFlash = false,
  this.strings = const {
    'cancel': 'Cancel',
    'flash_on': 'Flash on',
    'flash_off': 'Flash off',
  },
}) : assert(useCamera >= -1);