PieLayout<T> constructor

PieLayout<T>({
  1. required double value(
    1. T
    ),
  2. double startAngle = -math.pi / 2,
  3. double endAngle = 3 * math.pi / 2,
  4. double padAngle = 0,
  5. int sort(
    1. T a,
    2. T b
    )?,
  6. bool sortByValueDescending = false,
})

Creates a pie layout generator.

Implementation

PieLayout({
  required this.value,
  this.startAngle = -math.pi / 2,
  this.endAngle = 3 * math.pi / 2,
  this.padAngle = 0,
  this.sort,
  this.sortByValueDescending = false,
});