ScanOptions class

Provides options to configure the barcode scanner

Constructors

ScanOptions({List<BarcodeFormat> restrictFormat = const [], int useCamera = -1, AndroidOptions android = const AndroidOptions(), bool autoEnableFlash = false, Map<String, String> strings = const {'cancel' : 'Cancel', 'flash_on' : 'Flash on', 'flash_off' : 'Flash off'}})
Create a object which represents the scanner options
const

Properties

android → AndroidOptions
Android specific configuration
final
autoEnableFlash → bool
Set to true to automatically enable flash on camera start
final
hashCode → int
The hash code for this object.
no setterinherited
restrictFormat → List<BarcodeFormat>
Restrict the supported barcode formats
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strings → Map<String, String>
This map contains strings which are displayed to the user
final
useCamera → int
Index of the camera which should used. -1 uses the default camera
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited