TouchLineBarSpot class

A LineBarSpot that holds information about the event that selected it

Inheritance

Constructors

TouchLineBarSpot(LineChartBarData bar, int barIndex, FlSpot spot, double distance)

Properties

bar LineChartBarData
Is the LineChartBarData that this spot is inside of.
finalinherited
barIndex int
Is the index of our bar, in the LineChartData.lineBarsData list,
finalinherited
distance double
Distance in pixels from where the user taped
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
Used for equality check, see EquatableMixin.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spotIndex int
Is the index of our super.spot, in the LineChartBarData.spots list.
finalinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
x double
finalinherited
y double
finalinherited

Methods

copyWith({double? x, double? y}) FlSpot
Copies current FlSpot to a new FlSpot, and replaces provided values.
inherited
isNotNull() bool
Determines if x and y is not null.
inherited
isNull() bool
Determines if x or y is null.
inherited
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