copyWith method

Returns a copy of this object with the given fields updated.

If no values are provided for the fields, the current values will be kept.

  • editIcon: Updates the button for the edit action.
  • removeIcon: Updates the button for the remove action.
  • rotateScaleIcon: Updates the button for rotate/scale actions.

Implementation

LayerInteractionWidgets copyWith({
  LayerInteractionTapButton? editIcon,
  LayerInteractionTapButton? removeIcon,
  LayerInteractionScaleRotateButton? rotateScaleIcon,
}) {
  return LayerInteractionWidgets(
    editIcon: editIcon ?? this.editIcon,
    removeIcon: removeIcon ?? this.removeIcon,
    rotateScaleIcon: rotateScaleIcon ?? this.rotateScaleIcon,
  );
}