BarTouchedSpot class
It gives you information about the touched spot.
- Inheritance
-
- Object
- TouchedSpot
- BarTouchedSpot
Constructors
- BarTouchedSpot(BarChartGroupData touchedBarGroup, int touchedBarGroupIndex, BarChartRodData touchedRodData, int touchedRodDataIndex, BarChartRodStackItem? touchedStackItem, int touchedStackItemIndex, FlSpot spot, Offset offset)
-
When touch happens, a BarTouchedSpot returns as a output,
it tells you where the touch happened.
touchedBarGroup, and touchedBarGroupIndex tell you in which group touch happened,
touchedRodData, and touchedRodDataIndex tell you in which rod touch happened,
touchedStackItem, and touchedStackItemIndex tell you in which rod stack touch happened
(touchedStackItemIndex means nothing found).
You can also have the touched x and y in the chart as a FlSpot using
spot
value, and you can have the local touch coordinates on the screen as a Offset usingoffset
value.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- offset → Offset
-
Represents the touch position in device pixels,
0, 0 is top, left, and 1, 1 is bottom right.
finalinherited
-
props
→ List<
Object?> -
Used for equality check, see
EquatableMixin
.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spot → FlSpot
-
Represents the spot inside our axis based chart,
0, 0 is bottom left, and 1, 1 is top right.
finalinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - touchedBarGroup → BarChartGroupData
-
final
- touchedBarGroupIndex → int
-
final
- touchedRodData → BarChartRodData
-
final
- touchedRodDataIndex → int
-
final
- touchedStackItem → BarChartRodStackItem?
-
It can be null, if nothing found
final
- touchedStackItemIndex → int
-
It can be -1, if nothing found
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