SegmentData constructor

SegmentData({
  1. required double percentage,
  2. required Color color,
  3. String? label,
})

Creates a SegmentData instance with the specified properties.

Implementation

SegmentData({required this.percentage, required this.color, this.label});