PieTouchData class

Holds data to handle touch events, and touch responses in the PieChart.

There is a touch flow, explained here in a simple way, each chart's renderer captures the touch events, and passes the pointerEvent to the painter, and gets touched spot, and wraps it into a concrete PieTouchResponse.

Inheritance

Constructors

PieTouchData({bool? enabled, BaseTouchCallback<PieTouchResponse>? touchCallback, MouseCursorResolver<PieTouchResponse>? mouseCursorResolver, Duration? longPressDuration})
You can disable or enable the touch system using enabled flag,

Properties

enabled bool
You can disable or enable the touch system using enabled flag,
finalinherited
hashCode int
The hash code for this object.
no setterinherited
longPressDuration Duration?
This property that allows to customize the duration of the longPress gesture. default to 500 milliseconds refer to kLongPressTimeout.
finalinherited
mouseCursorResolver MouseCursorResolver<PieTouchResponse>?
Using mouseCursorResolver you can change the mouse cursor based on the provided FlTouchEvent and BaseTouchResponse
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
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
touchCallback BaseTouchCallback<PieTouchResponse>?
touchCallback notifies you about the happened touch/pointer events. It gives you a FlTouchEvent which is the happened event such as FlPointerHoverEvent, FlTapUpEvent, ... It also gives you a BaseTouchResponse which is the chart specific type and contains information about the elements that has touched.
finalinherited

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