copyWith method

PrinterDesignerPackageListModel copyWith({
  1. String? id,
  2. String? label,
  3. String? prefix,
  4. String? urlString,
  5. String? value,
  6. double? positionX,
  7. double? positionY,
  8. double? height,
  9. double? width,
  10. String? section,
  11. String? type,
  12. bool? isSelected,
  13. String? customText,
  14. PrintDesignPackageProperties? properties,
})

Implementation

PrinterDesignerPackageListModel copyWith({
  String? id,
  String? label,
  String? prefix,
  String? urlString,
  String? value,
  double? positionX,
  double? positionY,
  double? height,
  double? width,
  String? section,
  String? type,
  bool? isSelected,
  String? customText,
  PrintDesignPackageProperties? properties,
}) {
  return PrinterDesignerPackageListModel(
    id: id ?? this.id,
    type: type ?? this.type,
    label: label ?? this.label,
    prefix: prefix ?? this.prefix,
    value: value ?? this.value,
    imageUrl: imageUrl ?? this.imageUrl,
    positionX: positionX ?? this.positionX,
    positionY: positionY ?? this.positionY,
    height: height ?? this.height,
    width: width ?? this.width,
    section: section ?? this.section,
    isSelected: isSelected ?? this.isSelected,
    customText: customText ?? this.customText,
    properties: properties ?? this.properties,
  );
}