copyWith method

SequenceDiagramModel copyWith({
  1. String? mermaid,
  2. int? width,
  3. int? height,
  4. SequenceDiagramTheme? theme,
})

Creates a copy with the given fields replaced.

Implementation

SequenceDiagramModel copyWith({
  String? mermaid,
  int? width,
  int? height,
  SequenceDiagramTheme? theme,
}) {
  return SequenceDiagramModel(
    mermaid: mermaid ?? this.mermaid,
    width: width ?? this.width,
    height: height ?? this.height,
    theme: theme ?? this.theme,
  );
}