copyWith method

DiagramOptions copyWith({
  1. CanvasBounds? bounds,
  2. DiagramFontChoices? fonts,
  3. 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?,
);