copyWith method

DecodeHint copyWith({
  1. bool? other,
  2. bool? pureBarcode,
  3. List<BarcodeFormat>? possibleFormats,
  4. bool? tryHarder,
  5. String? characterSet,
  6. List<int>? allowedLengths,
  7. bool? assumeCode39CheckDigit,
  8. bool? assumeGs1,
  9. bool? returnCodabarStartEnd,
  10. ResultPointCallback? needResultPointCallback,
  11. List<int>? allowedEanExtensions,
  12. bool? alsoInverted,
})

Implementation

DecodeHint copyWith({
  bool? other,
  bool? pureBarcode,
  List<BarcodeFormat>? possibleFormats,
  bool? tryHarder,
  String? characterSet,
  List<int>? allowedLengths,
  bool? assumeCode39CheckDigit,
  bool? assumeGs1,
  bool? returnCodabarStartEnd,
  ResultPointCallback? needResultPointCallback,
  List<int>? allowedEanExtensions,
  bool? alsoInverted,
}) {
  return DecodeHint(
    other: other ?? this.other,
    pureBarcode: pureBarcode ?? this.pureBarcode,
    possibleFormats: possibleFormats ?? this.possibleFormats,
    tryHarder: tryHarder ?? this.tryHarder,
    characterSet: characterSet ?? this.characterSet,
    allowedLengths: allowedLengths ?? this.allowedLengths,
    assumeCode39CheckDigit:
        assumeCode39CheckDigit ?? this.assumeCode39CheckDigit,
    assumeGs1: assumeGs1 ?? this.assumeGs1,
    returnCodabarStartEnd:
        returnCodabarStartEnd ?? this.returnCodabarStartEnd,
    needResultPointCallback:
        needResultPointCallback ?? this.needResultPointCallback,
    allowedEanExtensions: allowedEanExtensions ?? this.allowedEanExtensions,
    alsoInverted: alsoInverted ?? this.alsoInverted,
  );
}