FlTouchData<R extends BaseTouchResponse> class abstract

Holds data to handle touch events, and touch responses in abstract way.

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 BaseTouchResponse.

Implementers

Constructors

FlTouchData(bool enabled, BaseTouchCallback<R>? touchCallback, MouseCursorResolver<R>? mouseCursorResolver, Duration? longPressDuration)
You can disable or enable the touch system using enabled flag,
const

Properties

enabled bool
You can disable or enable the touch system using enabled flag,
final
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.
final
mouseCursorResolver MouseCursorResolver<R>?
Using mouseCursorResolver you can change the mouse cursor based on the provided FlTouchEvent and BaseTouchResponse
final
props List<Object?>
Used for equality check, see EquatableMixin.
no setter
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<R>?
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.
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