copyWith method

ObjectSettings copyWith({
  1. ObjectLayoutAssistSettings? layoutAssist,
  2. ObjectEnlargeControlsResolver? enlargeControlsResolver,
  3. ObjectShowScaleRotationControlsResolver? showScaleRotationControlsResolver,
})

Creates a copy of this but with the given fields replaced with the new values.

Implementation

ObjectSettings copyWith({
  ObjectLayoutAssistSettings? layoutAssist,
  ObjectEnlargeControlsResolver? enlargeControlsResolver,
  ObjectShowScaleRotationControlsResolver? showScaleRotationControlsResolver,
}) {
  return ObjectSettings(
    layoutAssist: layoutAssist ?? this.layoutAssist,
    enlargeControlsResolver:
        enlargeControlsResolver ?? this.enlargeControlsResolver,
    showScaleRotationControlsResolver: showScaleRotationControlsResolver ??
        this.showScaleRotationControlsResolver,
  );
}