CustomWidgetsLayerInteraction class

A class that defines a layer of interaction for custom widgets, allowing editing, removing, and rotating/scaling actions.

Each interaction can be represented by specific buttons passed into the constructor.

Example usage:

CustomWidgetsLayerInteraction(
  editIcon: LayerInteractionTapButton(...),
  removeIcon: LayerInteractionTapButton(...),
  rotateScaleIcon: LayerInteractionScaleRotateButton(...),
);

Constructors

CustomWidgetsLayerInteraction({LayerInteractionTapButton? editIcon, LayerInteractionTapButton? removeIcon, LayerInteractionScaleRotateButton? rotateScaleIcon})
Creates a CustomWidgetsLayerInteraction with optional interaction buttons.
const

Properties

editIcon LayerInteractionTapButton?
The button for the edit interaction, represented by LayerInteractionTapButton.
final
hashCode int
The hash code for this object.
no setterinherited
removeIcon LayerInteractionTapButton?
The button for the remove interaction, represented by LayerInteractionTapButton.
final
rotateScaleIcon LayerInteractionScaleRotateButton?
The button for the rotate/scale interaction, represented by LayerInteractionScaleRotateButton.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({LayerInteractionTapButton? editIcon, LayerInteractionTapButton? removeIcon, LayerInteractionScaleRotateButton? rotateScaleIcon}) CustomWidgetsLayerInteraction
Returns a copy of this object with the given fields updated.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited