SliceDataStyle constructor

const SliceDataStyle({
  1. required double radius,
  2. double? labelPosition,
  3. Color? color = Colors.amber,
  4. Gradient? gradient,
  5. Color? strokeColor = Colors.deepOrange,
  6. double? strokeWidth = 0.0,
})

Encapsulates all the Styling options required for a PieChart. The order of priority in styling is

  1. style in SliceData
  2. seriesStyle in PieSeries
  3. Default SliceDataStyle Style

Implementation

const SliceDataStyle({
  required this.radius,
  this.labelPosition,
  this.color = Colors.amber,
  this.gradient,
  this.strokeColor = Colors.deepOrange,
  this.strokeWidth = 0.0,
});