copyWith method

ScanProductModel copyWith({
  1. int? itemCount,
  2. String? itemValue,
})

copy new instance of ScanProductModel.

Implementation

ScanProductModel copyWith({
  int? itemCount,
  String? itemValue,
}) {
  return ScanProductModel(
    itemCount: itemCount ?? this.itemCount,
    itemValue: itemValue ?? this.itemValue,
  );
}