copyWith method

PrintModel copyWith({
  1. String? printRefNo,
  2. bool? savePrintData,
  3. List<PrintRowModel>? data,
})

Implementation

PrintModel copyWith({
  String? printRefNo,
  bool? savePrintData,
  List<PrintRowModel>? data,
}) {
  return PrintModel(
    printRefNo: printRefNo ?? this.printRefNo,
    savePrintData: savePrintData ?? this.savePrintData,
    data: data ?? this.data,
  );
}