copyWith method
Implementation
PrintEntity copyWith({
PrintType? type,
String? title,
String? content,
DateTime? startTime,
bool? showDetail,
}) {
return PrintEntity(
type: type ?? this.type,
title: title ?? this.title,
content: content ?? this.content,
startTime: startTime ?? this.startTime,
showDetail: showDetail ?? this.showDetail,
);
}