HelperLineConfigs class

The HelperLineConfigs class defines the settings for displaying helper lines in the image editor. Helper lines are used to guide users in positioning and rotating layers.

Usage:

HelperLineConfigs helperLines = HelperLineConfigs(
  showVerticalLine: true,
  showHorizontalLine: true,
  showRotateLine: true,
);

Properties:

  • showVerticalLine: Specifies whether to show the vertical helper line.

  • showHorizontalLine: Specifies whether to show the horizontal helper line.

  • showRotateLine: Specifies whether to show the rotate helper line.

Example Usage:

HelperLineConfigs helperLines = HelperLineConfigs(
  showVerticalLine: true,
  showHorizontalLine: true,
  showRotateLine: true,
);

bool showVerticalLine = helperLines.showVerticalLine;
bool showHorizontalLine = helperLines.showHorizontalLine;
// Access other helper lines settings...

Constructors

HelperLineConfigs({bool showVerticalLine = true, bool showHorizontalLine = true, bool showRotateLine = true, bool hitVibration = true, HelperLineStyle style = const HelperLineStyle()})
Creates an instance of the HelperLines class with the specified settings.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hitVibration bool
Controls whether haptic feedback is enabled when a layer intersects with a helper line.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showHorizontalLine bool
Specifies whether to show the horizontal helper line.
final
showRotateLine bool
Specifies whether to show the rotate helper line.
final
showVerticalLine bool
Specifies whether to show the vertical helper line.
final
style HelperLineStyle
Style configuration for helper lines.
final

Methods

copyWith({bool? showVerticalLine, bool? showHorizontalLine, bool? showRotateLine, bool? hitVibration, HelperLineStyle? style}) HelperLineConfigs
Creates a copy of this HelperLineConfigs 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