HelperLines class

The HelperLines 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:

HelperLines helperLines = HelperLines(
  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:

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

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

Constructors

HelperLines({bool showVerticalLine = true, bool showHorizontalLine = true, bool showRotateLine = true, bool hitVibration = true})
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

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