LayerInteraction class

Represents the interaction behavior for a layer.

This class provides configuration options for layer interactions, such as whether the layer is selectable and its initial selection state.

Constructors

LayerInteraction({LayerInteractionSelectable selectable = LayerInteractionSelectable.auto, bool initialSelected = false, bool hideToolbarOnInteraction = false})
Creates a LayerInteraction instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hideToolbarOnInteraction bool
Determines whether the toolbars should be hidden when the user interacts with the editor.
final
initialSelected bool
The layer is automatically selected upon creation. This option takes effect only when selectable is set to enabled or auto where the device is a desktop.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectable LayerInteractionSelectable
Specifies the selectability behavior for the layer.
final

Methods

copyWith({LayerInteractionSelectable? selectable, bool? initialSelected, bool? hideToolbarOnInteraction}) LayerInteraction
Creates a copy of this LayerInteraction object with the given fields replaced with new values.
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