GraphCrosshairSpec class

The crosshair: a line through the row under the pointer and one at its price, tagged on both axes.

Constructors

GraphCrosshairSpec({bool enabled = true, String magnet = '', String on = 'both', bool vertical = true, bool horizontal = true, String line = 'dashed', double dot = 0, double dotStroke = 0, String timeLabel = 'axis', String timeFormat = '', bool priceTag = true})
const
GraphCrosshairSpec.fromJson(Json j)
factory

Properties

dot → double
A dot of this radius where the lines cross, in the magnet mark's color, ringed dotStroke wide in the background color.
final
dotStroke → double
A dot of this radius where the lines cross, in the magnet mark's color, ringed dotStroke wide in the background color.
final
enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
horizontal → bool
final
line → String
dashed or solid.
final
magnet → String
The row field its price snaps to (c: the close); empty for the pointer's own price.
final
on → String
hover, longPress, both, or touch: a hover, and a finger from the moment it is down (a scrub: no pan).
final
priceTag → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeFormat → String
The time's pattern; empty for the axis's.
final
timeLabel → String
Where the row's time is written: axis (a tag on the time axis), top (plain text above the plot, over the line) or none.
final
vertical → bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited