SfCircularChart constructor

SfCircularChart({Key key, Color backgroundColor, ImageProvider backgroundImage, List<CircularChartAnnotation> annotations, Color borderColor: Colors.transparent, double borderWidth: 0.0, CircularLegendRenderCallback onLegendItemRender, CircularTooltipCallback onTooltipRender, CircularDatalabelRenderCallback onDataLabelRender, CircularPointTapCallback onPointTapped, ChartLegendTapCallback onLegendTapped, CircularSelectionCallback onSelectionChanged, List<Color> palette: const [Color.fromRGBO(53, 92, 125, 1), Color.fromRGBO(192, 108, 132, 1), Color.fromRGBO(246, 114, 128, 1), Color.fromRGBO(248, 177, 149, 1), Color.fromRGBO(116, 180, 155, 1), Color.fromRGBO(0, 168, 181, 1), Color.fromRGBO(73, 76, 162, 1), Color.fromRGBO(255, 205, 96, 1), Color.fromRGBO(255, 240, 219, 1), Color.fromRGBO(238, 238, 238, 1)], ChartTitle title, EdgeInsets margin, List<CircularSeries> series, Legend legend, String centerX, String centerY, TooltipBehavior tooltipBehavior, List<IndexesModel> initialSelectedDataIndexes, ActivationMode selectionGesture, bool enableMultiSelection })

Implementation

SfCircularChart(
    {Key key,
    this.backgroundColor,
    this.backgroundImage,
    this.annotations,
    this.borderColor = Colors.transparent,
    this.borderWidth = 0.0,
    this.onLegendItemRender,
    this.onTooltipRender,
    this.onDataLabelRender,
    this.onPointTapped,
    this.onLegendTapped,
    this.onSelectionChanged,
    this.palette = const <Color>[
      Color.fromRGBO(53, 92, 125, 1),
      Color.fromRGBO(192, 108, 132, 1),
      Color.fromRGBO(246, 114, 128, 1),
      Color.fromRGBO(248, 177, 149, 1),
      Color.fromRGBO(116, 180, 155, 1),
      Color.fromRGBO(0, 168, 181, 1),
      Color.fromRGBO(73, 76, 162, 1),
      Color.fromRGBO(255, 205, 96, 1),
      Color.fromRGBO(255, 240, 219, 1),
      Color.fromRGBO(238, 238, 238, 1)
    ],
    ChartTitle title,
    EdgeInsets margin,
    List<CircularSeries<dynamic, dynamic>> series,
    Legend legend,
    String centerX,
    String centerY,
    TooltipBehavior tooltipBehavior,
    List<IndexesModel> initialSelectedDataIndexes,
    ActivationMode selectionGesture,
    bool enableMultiSelection})
    : initialSelectedDataIndexes =
          initialSelectedDataIndexes ?? <IndexesModel>[],
      series = series = series ?? <CircularSeries<dynamic, dynamic>>[],
      title = title ?? ChartTitle(),
      legend = legend ?? Legend(),
      margin = margin ?? const EdgeInsets.fromLTRB(10, 10, 10, 10),
      centerX = centerX ?? '50%',
      centerY = centerY ?? '50%',
      tooltipBehavior = tooltipBehavior ?? TooltipBehavior(),
      selectionGesture = selectionGesture ?? ActivationMode.singleTap,
      enableMultiSelection = enableMultiSelection ?? false,
      super(key: key) {
  _chartSeries = _CircularSeries();
  _chartLegend = _ChartLegend();
  _chartTheme = _ChartTheme();
  _needToMoveFromCenter = true;
}