SfCircularChart constructor

const SfCircularChart(
  1. {Key? key,
  2. Color? backgroundColor,
  3. ImageProvider<Object>? backgroundImage,
  4. List<CircularChartAnnotation>? annotations,
  5. Color borderColor = Colors.transparent,
  6. double borderWidth = 0.0,
  7. CircularLegendRenderCallback? onLegendItemRender,
  8. CircularTooltipCallback? onTooltipRender,
  9. CircularDataLabelRenderCallback? onDataLabelRender,
  10. DataLabelTapCallback? onDataLabelTapped,
  11. ChartLegendTapCallback? onLegendTapped,
  12. CircularSelectionCallback? onSelectionChanged,
  13. CircularTouchInteractionCallback? onChartTouchInteractionUp,
  14. CircularTouchInteractionCallback? onChartTouchInteractionDown,
  15. CircularTouchInteractionCallback? onChartTouchInteractionMove,
  16. CircularShaderCallback? onCreateShader,
  17. List<Color>? palette,
  18. EdgeInsets margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
  19. List<CircularSeries> series = const <CircularSeries>[],
  20. ChartTitle title = const ChartTitle(),
  21. Legend legend = const Legend(),
  22. String centerX = '50%',
  23. String centerY = '50%',
  24. TooltipBehavior? tooltipBehavior,
  25. ActivationMode selectionGesture = ActivationMode.singleTap,
  26. bool enableMultiSelection = false}
)

Creating an argument constructor of SfCircularChart class.

Implementation

const SfCircularChart({
  Key? key,
  this.backgroundColor,
  this.backgroundImage,
  this.annotations,
  this.borderColor = Colors.transparent,
  this.borderWidth = 0.0,
  this.onLegendItemRender,
  this.onTooltipRender,
  this.onDataLabelRender,
  this.onDataLabelTapped,
  this.onLegendTapped,
  this.onSelectionChanged,
  this.onChartTouchInteractionUp,
  this.onChartTouchInteractionDown,
  this.onChartTouchInteractionMove,
  this.onCreateShader,
  this.palette,
  this.margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
  this.series = const <CircularSeries>[],
  this.title = const ChartTitle(),
  this.legend = const Legend(),
  this.centerX = '50%',
  this.centerY = '50%',
  this.tooltipBehavior,
  this.selectionGesture = ActivationMode.singleTap,
  this.enableMultiSelection = false,
}) : super(key: key);