visibleSegmentAt method
Implementation
@override
ChartSegment? visibleSegmentAt(Offset position) {
if (segments.isEmpty) {
return null;
}
final ChartSegment segment = segments[0];
if (segment.contains(position)) {
return segment;
}
return null;
}