copyWith method

ScanResult copyWith({
  1. String? barcode,
  2. BarcodeTypes? barcodeType,
  3. String? hardwareLabelType,
})

Implementation

ScanResult copyWith({String? barcode, BarcodeTypes? barcodeType, String? hardwareLabelType}) =>
    ScanResult(barcode: barcode ?? this.barcode, barcodeType: barcodeType ?? this.barcodeType, hardwareLabelType: hardwareLabelType ?? this.hardwareLabelType);