ChartInteractionResult class

Result of a chart interaction.

This class represents the result of detecting a tap or hover on a chart element. It contains information about which element was interacted with and its position.

Constructors

ChartInteractionResult({ChartDataPoint? point, PieData? segment, int? datasetIndex, int? elementIndex, bool isHit = false})
const
ChartInteractionResult.none()
const

Properties

datasetIndex int?
final
elementIndex int?
final
hashCode int
The hash code for this object.
no setterinherited
isHit bool
final
point ChartDataPoint?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segment PieData?
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