PieChart constructor

PieChart({
  1. Iterable<ColorToken>? colors,
  2. bool donut = false,
  3. double donutRadius = 30,
  4. double sectionRadius = 60,
  5. PieLabelType labelType = PieLabelType.value,
  6. String? name,
  7. Object? visible,
})

Implementation

PieChart({
  Iterable<ColorToken>? colors,
  this.donut = false,
  this.donutRadius = 30,
  this.sectionRadius = 60,
  this.labelType = PieLabelType.value,
  String? name,
  Object? visible,
}) : colors = List.unmodifiable(colors ?? const <ColorToken>[]),
     super(name: name, visible: _normalizeVisibility(visible));