copyWith method

LabeledContent copyWith({
  1. String? contentType,
  2. int? contentId,
  3. String? title,
})

Implementation

LabeledContent copyWith(
    {String? contentType, int? contentId, String? title}) {
  return LabeledContent(
    contentType: contentType ?? this.contentType,
    contentId: contentId ?? this.contentId,
    title: title ?? this.title,
  );
}