PyramidSeries<T, D> constructor

PyramidSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. PyramidSeriesRendererCreatedCallback? onRendererCreated,
  4. List<T>? dataSource,
  5. ChartValueMapper<T, D>? xValueMapper,
  6. ChartValueMapper<T, num>? yValueMapper,
  7. ChartValueMapper<T, Color>? pointColorMapper,
  8. ChartValueMapper<T, String>? textFieldMapper,
  9. String? name,
  10. String? height,
  11. String? width,
  12. PyramidMode? pyramidMode,
  13. double? gapRatio,
  14. LegendIconType? legendIconType,
  15. EmptyPointSettings? emptyPointSettings,
  16. DataLabelSettings? dataLabelSettings,
  17. double? animationDuration,
  18. double? opacity,
  19. Color? borderColor,
  20. double? borderWidth,
  21. bool? explode,
  22. num? explodeIndex,
  23. ActivationMode? explodeGesture,
  24. String? explodeOffset,
  25. SelectionSettings? selectionSettings,
  26. SelectionBehavior? selectionBehavior,
  27. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of PyramidSeries class.

Implementation

PyramidSeries({
  ValueKey<String>? key,
  ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  PyramidSeriesRendererCreatedCallback? onRendererCreated,
  List<T>? dataSource,
  ChartValueMapper<T, D>? xValueMapper,
  ChartValueMapper<T, num>? yValueMapper,
  ChartValueMapper<T, Color>? pointColorMapper,
  ChartValueMapper<T, String>? textFieldMapper,
  String? name,
  String? height,
  String? width,
  PyramidMode? pyramidMode,
  double? gapRatio,
  LegendIconType? legendIconType,
  EmptyPointSettings? emptyPointSettings,
  DataLabelSettings? dataLabelSettings,
  double? animationDuration,
  double? opacity,
  Color? borderColor,
  double? borderWidth,
  bool? explode,
  num? explodeIndex,
  ActivationMode? explodeGesture,
  String? explodeOffset,
  // ignore: deprecated_member_use_from_same_package
  SelectionSettings? selectionSettings,
  SelectionBehavior? selectionBehavior,
  List<int>? initialSelectedDataIndexes,
}) : super(
        key: key,
        onCreateRenderer: onCreateRenderer,
        onRendererCreated: onRendererCreated,
        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,
        textFieldMapper: (int index) => textFieldMapper != null
            ? textFieldMapper(dataSource![index], index)
            : null,
        name: name,
        height: height,
        width: width,
        pyramidMode: pyramidMode,
        gapRatio: gapRatio,
        emptyPointSettings: emptyPointSettings,
        dataLabelSettings: dataLabelSettings,
        legendIconType: legendIconType,
        opacity: opacity,
        borderColor: borderColor,
        borderWidth: borderWidth,
        animationDuration: animationDuration,
        explode: explode,
        explodeIndex: explodeIndex,
        explodeOffset: explodeOffset,
        explodeGesture: explodeGesture,
        selectionSettings: selectionSettings,
        selectionBehavior: selectionBehavior,
        initialSelectedDataIndexes: initialSelectedDataIndexes,
      );