UCodeScanOptions class

Constructors

UCodeScanOptions({List<UCodeFormat> formats = const <UCodeFormat>[], bool multiple = false, bool tryHarder = true, bool tryRotate = true, bool tryInvert = false, bool tryDownscale = true, int maxSymbols = 8, Rect? region})
const

Properties

effectiveFormats → Set<UCodeFormat>
no setter
formats → List<UCodeFormat>
Empty means every supported symbology. Restricting this is the single biggest decode-speed win.
final
hashCode → int
The hash code for this object.
no setterinherited
maxSymbols → int
final
multiple → bool
Keep looking after the first symbol.
final
region → Rect?
Restrict decoding to this rectangle of the source image.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tryDownscale → bool
Retry at half resolution when the full-resolution pass finds nothing.
final
tryHarder → bool
Spend more time on hard images (more rows, more rotations).
final
tryInvert → bool
Also try the inverted image, for light-on-dark symbols.
final
tryRotate → bool
final
wantsMatrix → bool
no setter

Methods

copyWith({List<UCodeFormat>? formats, bool? multiple, bool? tryHarder, bool? tryRotate, bool? tryInvert, bool? tryDownscale, int? maxSymbols, Rect? region}) → UCodeScanOptions
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map<Object?, Object?> map) → UCodeScanOptions