BarTouchResponse class
Holds information about touch response in the BarChart.
You can override BarTouchData.touchCallback to handle touch events, it gives you a BarTouchResponse and you can do whatever you want.
- Inheritance
-
- Object
- BaseTouchResponse
- BarTouchResponse
Constructors
- BarTouchResponse(BarTouchedSpot? spot)
- If touch happens, BarChart processes it internally and passes out a BarTouchedSpot that contains a spot, 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
- spot → BarTouchedSpot?
-
Gives information about the touched spot
final
Methods
-
copyWith(
{BarTouchedSpot? spot}) → BarTouchResponse - Copies current BarTouchResponse to a new BarTouchResponse, 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