PieSegmentCallback typedef
Callback for pie chart segment interactions
position is the global tap position for showing context menus
Implementation
typedef PieSegmentCallback = void Function(
PieData segment,
int segmentIndex,
Offset position,
);