copyWith method
DiagramOptions
copyWith({
- CanvasBounds? bounds,
- DiagramFontChoices? fonts,
- Object? defaultFontFamily = _unset,
A copy with the given configuration values.
Implementation
DiagramOptions copyWith({
CanvasBounds? bounds,
DiagramFontChoices? fonts,
Object? defaultFontFamily = _unset,
}) => DiagramOptions._(
values,
bounds ?? this.bounds,
fonts ?? this.fonts,
identical(defaultFontFamily, _unset)
? this.defaultFontFamily
: defaultFontFamily as String?,
);