PieEntry constructor

PieEntry({
  1. required double value,
  2. String? label,
  3. Image? icon,
  4. Object? data,
  5. double? labelTextSize,
  6. Color? labelColor,
})

Implementation

PieEntry(
    {required double value,
    String? label,
    ui.Image? icon,
    Object? data,
    double? labelTextSize,
    ui.Color? labelColor})
    : super(x: 0, y: value, icon: icon, data: data) {
  _label = label;
  _labelTextSize = labelTextSize ?? Utils.convertDpToPixel(10);
  _labelColor = labelColor ?? ColorUtils.white;
}