CrosshairBehavior class

This class has the properties of the crosshair behavior.

crosshair behavior has the activation mode and line type property to set the behavior of the crosshair. It also has the property to customize the appearance.

Provide options for activation mode, line type, line color, line width, hide delay for customizing the behavior of the crosshair.

Constructors

CrosshairBehavior({ActivationMode activationMode, CrosshairLineType lineType, List<double> lineDashArray, bool enable: false, Color lineColor, double lineWidth: 1, bool shouldAlwaysShow: false, double hideDelay})
Creating an argument constructor of CrosshairBehavior class.

Properties

activationMode ActivationMode
Gesture for activating the crosshair. [...]
final
enable bool
Toggles the visibility of the crosshair. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hideDelay double
Giving disapper delay for crosshair [...]
final
lineColor Color
Color of the crosshair line. [...]
final
lineDashArray List<double>
Dashes of the crosshair line. [...]
final
lineType CrosshairLineType
Type of crosshair line. [...]
final
lineWidth double
Width of the crosshair line. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shouldAlwaysShow bool
Enables or disables the crosshair. [...]
final

Methods

hide() → void
Hides the crosshair if it is displayed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
show(dynamic x, double y, [String coordinateUnit]) → void
Displays the crosshair at the specified x and y-positions. [...]
showByIndex(int pointIndex) → void
Displays the crosshair at the specified point index. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

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