PyramidSeries<T, D> constructor

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

Creating an argument constructor of PyramidSeries class.

Implementation

PyramidSeries({
  ValueKey<String>? key,
  ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  PyramidSeriesRendererCreatedCallback? onRendererCreated,
  ChartPointInteractionCallback? onPointTap,
  ChartPointInteractionCallback? onPointDoubleTap,
  ChartPointInteractionCallback? onPointLongPress,
  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? animationDelay,
  double? opacity,
  Color? borderColor,
  double? borderWidth,
  bool? explode,
  num? explodeIndex,
  ActivationMode? explodeGesture,
  String? explodeOffset,
  SelectionBehavior? selectionBehavior,
  List<int>? initialSelectedDataIndexes,
}) : super(
        key: key,
        onCreateRenderer: onCreateRenderer,
        onRendererCreated: onRendererCreated,
        onPointTap: onPointTap,
        onPointDoubleTap: onPointDoubleTap,
        onPointLongPress: onPointLongPress,
        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,
        animationDelay: animationDelay,
        explode: explode,
        explodeIndex: explodeIndex,
        explodeOffset: explodeOffset,
        explodeGesture: explodeGesture,
        selectionBehavior: selectionBehavior,
        initialSelectedDataIndexes: initialSelectedDataIndexes,
      );