copyWith method

UCodeScanOptions copyWith({
  1. List<UCodeFormat>? formats,
  2. bool? multiple,
  3. bool? tryHarder,
  4. bool? tryRotate,
  5. bool? tryInvert,
  6. bool? tryDownscale,
  7. int? maxSymbols,
  8. Rect? region,
})

Implementation

UCodeScanOptions copyWith({List<UCodeFormat>? formats, bool? multiple, bool? tryHarder, bool? tryRotate, bool? tryInvert, bool? tryDownscale, int? maxSymbols, Rect? region}) => UCodeScanOptions(
  formats: formats ?? this.formats,
  multiple: multiple ?? this.multiple,
  tryHarder: tryHarder ?? this.tryHarder,
  tryRotate: tryRotate ?? this.tryRotate,
  tryInvert: tryInvert ?? this.tryInvert,
  tryDownscale: tryDownscale ?? this.tryDownscale,
  maxSymbols: maxSymbols ?? this.maxSymbols,
  region: region ?? this.region,
);