visibleSegmentAt method

ChartSegment? visibleSegmentAt(
  1. Offset position
)

Implementation

ChartSegment? visibleSegmentAt(Offset position) {
  for (final ChartSegment segment in segments) {
    if (segment.contains(position)) {
      return segment;
    }
  }

  return null;
}