DoughnutSeries<T, D> constructor

DoughnutSeries<T, D>({List<T> dataSource, ChartValueMapper<T, D> xValueMapper, ChartValueMapper<T, num> yValueMapper, ChartValueMapper<T, Color> pointColorMapper, ChartValueMapper<T, String> pointRadiusMapper, ChartValueMapper<T, String> dataLabelMapper, ChartValueMapper<T, String> sortFieldValueMapper, int startAngle, int endAngle, String radius, String innerRadius, bool explode, bool explodeAll, int explodeIndex, String explodeOffset, ActivationMode explodeGesture, double groupTo, CircularChartGroupMode groupMode, EmptyPointSettings emptyPointSettings, Color strokeColor, double strokeWidth, DataLabelSettings dataLabelSettings, bool enableTooltip, bool enableSmartLabels, String name, double opacity, double animationDuration, SelectionSettings selectionSettings, SortingOrder sortingOrder, LegendIconType legendIconType, CornerStyle cornerStyle })

Implementation

DoughnutSeries(
    {List<T> dataSource,
    ChartValueMapper<T, D> xValueMapper,
    ChartValueMapper<T, num> yValueMapper,
    ChartValueMapper<T, Color> pointColorMapper,
    ChartValueMapper<T, String> pointRadiusMapper,
    ChartValueMapper<T, String> dataLabelMapper,
    ChartValueMapper<T, String> sortFieldValueMapper,
    int startAngle,
    int endAngle,
    String radius,
    String innerRadius,
    bool explode,
    bool explodeAll,
    int explodeIndex,
    String explodeOffset,
    ActivationMode explodeGesture,
    double groupTo,
    CircularChartGroupMode groupMode,
    EmptyPointSettings emptyPointSettings,
    Color strokeColor,
    double strokeWidth,
    DataLabelSettings dataLabelSettings,
    bool enableTooltip,
    bool enableSmartLabels,
    String name,
    double opacity,
    double animationDuration,
    SelectionSettings selectionSettings,
    SortingOrder sortingOrder,
    LegendIconType legendIconType,
    CornerStyle cornerStyle})
    : super(
          dataSource: dataSource,
          xValueMapper: (int index) => xValueMapper(dataSource[index], index),
          yValueMapper: (int index) => yValueMapper(dataSource[index], index),
          pointColorMapper: (int index) => pointColorMapper != null
              ? pointColorMapper(dataSource[index], index)
              : null,
          pointRadiusMapper: (int index) => pointRadiusMapper != null
              ? pointRadiusMapper(dataSource[index], index)
              : null,
          dataLabelMapper: (int index) => dataLabelMapper != null
              ? dataLabelMapper(dataSource[index], index)
              : null,
          sortFieldValueMapper: sortFieldValueMapper != null
              ? (int index) => sortFieldValueMapper(dataSource[index], index)
              : null,
          animationDuration: animationDuration,
          startAngle: startAngle,
          endAngle: endAngle,
          radius: radius,
          innerRadius: innerRadius,
          explode: explode,
          opacity: opacity,
          explodeAll: explodeAll,
          explodeIndex: explodeIndex,
          explodeOffset: explodeOffset,
          explodeGesture: explodeGesture,
          groupMode: groupMode,
          groupTo: groupTo,
          emptyPointSettings: emptyPointSettings,
          borderColor: strokeColor,
          borderWidth: strokeWidth,
          dataLabelSettings: dataLabelSettings,
          enableTooltip: enableTooltip,
          name: name,
          selectionSettings: selectionSettings,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          enableSmartLabels: enableSmartLabels,
          cornerStyle: cornerStyle);