LineTouchResponse class
Holds information about touch response in the LineChart.
You can override LineTouchData.touchCallback to handle touch events, it gives you a LineTouchResponse and you can do whatever you want.
- Inheritance
-
- Object
- BaseTouchResponse
- LineTouchResponse
Constructors
-
LineTouchResponse(List<
TouchLineBarSpot> ? lineBarSpots) -
If touch happens, LineChart processes it internally and
passes out a list of lineBarSpots it gives you information about the touched spot.
They are sorted based on their distance to the touch event
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
lineBarSpots
→ List<
TouchLineBarSpot> ? -
touch happened on these spots
(if a single line provided on the chart, lineBarSpots's length will be 1 always)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< TouchLineBarSpot> ? lineBarSpots}) → LineTouchResponse - Copies current LineTouchResponse to a new LineTouchResponse, and replaces provided 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