copyWith method
Implementation
PrintTemplate copyWith({
String? id,
String? name,
String? categoryId,
bool clearCategory = false,
String? paperFormatId,
ReportTemplate? design,
Map<String, dynamic>? settings,
}) {
return PrintTemplate(
id: id ?? this.id,
name: name ?? this.name,
categoryId: clearCategory ? null : (categoryId ?? this.categoryId),
paperFormatId: paperFormatId ?? this.paperFormatId,
design: design ?? this.design,
settings: settings ?? this.settings,
);
}