copyWith method

PrintEntity copyWith({
  1. PrintType? type,
  2. String? title,
  3. String? content,
  4. DateTime? startTime,
  5. bool? showDetail,
})

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,
  );
}