ThemeLayerInteraction class

Represents the interaction settings for layers in the theme.

This class defines the visual interaction properties such as button radius, stroke width, dash width, dash space, dash color, and cursor styles for interacting with layers in the theme.

Constructors

ThemeLayerInteraction({Color removeAreaBackgroundActive = const Color(0xFFF44336), Color removeAreaBackgroundInactive = const Color(0xFF424242), double buttonRadius = 10, double strokeWidth = 1.2, double borderElementWidth = 7, double borderElementSpace = 5, Color borderColor = Colors.blue, SystemMouseCursor removeCursor = SystemMouseCursors.click, SystemMouseCursor rotateScaleCursor = SystemMouseCursors.click, SystemMouseCursor editCursor = SystemMouseCursors.click, SystemMouseCursor hoverCursor = SystemMouseCursors.move, LayerInteractionBorderStyle borderStyle = LayerInteractionBorderStyle.solid, bool showTooltips = false, Color buttonRemoveColor = Colors.black, Color buttonRemoveBackground = Colors.white, Color buttonEditTextColor = Colors.black, Color buttonEditTextBackground = Colors.white, Color buttonScaleRotateColor = Colors.black, Color buttonScaleRotateBackground = Colors.white})
Creates a new instance of ThemeLayerInteraction.
const

Properties

borderColor Color
The color of the border element used for layer interactions.
final
borderElementSpace double
The space between the border element used for layer interactions.
final
borderElementWidth double
The width of the border element used for layer interactions.
final
borderStyle LayerInteractionBorderStyle
Specifies the style of the selected layer border.
final
buttonEditTextBackground Color
final
buttonEditTextColor Color
final
buttonRadius double
The radius of buttons used for layer interactions.
final
buttonRemoveBackground Color
final
buttonRemoveColor Color
final
buttonScaleRotateBackground Color
final
buttonScaleRotateColor Color
final
editCursor SystemMouseCursor
The cursor style for editing a Text layer.
final
hashCode int
The hash code for this object.
no setterinherited
hoverCursor SystemMouseCursor
The cursor style when hovering over a layer.
final
removeAreaBackgroundActive Color
final
removeAreaBackgroundInactive Color
final
removeCursor SystemMouseCursor
The cursor style for removing a layer.
final
rotateScaleCursor SystemMouseCursor
The cursor style for rotating or scaling a layer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTooltips bool
Indicates whether tooltips should be displayed for the layer.
final
strokeWidth double
The width of the stroke used for layer interactions.
final

Methods

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