copyWith method

ContentBlock copyWith({
  1. String? topic,
  2. LocalizedText? content,
  3. References? references,
})

Implementation

ContentBlock copyWith({
  String? topic,
  LocalizedText? content,
  References? references,
}) {
  return ContentBlock(
    topic: topic ?? this.topic,
    content: content ?? this.content,
    references: references ?? this.references,
  );
}