copyWith method
SequenceDiagramModel
copyWith({
- String? mermaid,
- int? width,
- int? height,
- 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,
);
}