ScatterTouchResponse class
Holds information about touch response in the ScatterChart.
You can override ScatterTouchData.touchCallback to handle touch events, it gives you a ScatterTouchResponse and you can do whatever you want.
- Inheritance
-
- Object
- BaseTouchResponse
- AxisBaseTouchResponse
- ScatterTouchResponse
Constructors
- ScatterTouchResponse.new({required Offset touchLocation, required Offset touchChartCoordinate, required ScatterTouchedSpot? touchedSpot})
- If touch happens, ScatterChart processes it internally and passes out a ScatterTouchResponse, it gives you information about the touched spot.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- touchChartCoordinate → Offset
-
The axis coordinate of the touch in chart's coordinate system.
finalinherited
- touchedSpot → ScatterTouchedSpot?
-
final
- touchLocation → Offset
-
The location of the touch in pixels on the screen.
finalinherited
Methods
-
copyWith(
{Offset? touchLocation, Offset? touchChartCoordinate, ScatterTouchedSpot? touchedSpot}) → ScatterTouchResponse - Copies current ScatterTouchResponse to a new ScatterTouchResponse, 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