HiloSeries<T, D> constructor

HiloSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. required List<T> dataSource,
  4. required ChartValueMapper<T, D> xValueMapper,
  5. required ChartValueMapper<T, num> lowValueMapper,
  6. required ChartValueMapper<T, num> highValueMapper,
  7. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  8. ChartValueMapper<T, Color>? pointColorMapper,
  9. ChartValueMapper<T, String>? dataLabelMapper,
  10. SortingOrder? sortingOrder,
  11. String? xAxisName,
  12. String? yAxisName,
  13. String? name,
  14. Color? color,
  15. MarkerSettings? markerSettings,
  16. EmptyPointSettings? emptyPointSettings,
  17. DataLabelSettings? dataLabelSettings,
  18. bool? isVisible,
  19. bool? enableTooltip,
  20. double? animationDuration,
  21. double? borderWidth,
  22. SelectionBehavior? selectionBehavior,
  23. bool? isVisibleInLegend,
  24. LegendIconType? legendIconType,
  25. String? legendItemText,
  26. List<double>? dashArray,
  27. double? opacity,
  28. double? animationDelay,
  29. double? spacing,
  30. List<int>? initialSelectedDataIndexes,
  31. bool? showIndicationForSameValues,
  32. List<Trendline>? trendlines,
  33. SeriesRendererCreatedCallback? onRendererCreated,
  34. ChartPointInteractionCallback? onPointTap,
  35. ChartPointInteractionCallback? onPointDoubleTap,
  36. ChartPointInteractionCallback? onPointLongPress,
  37. CartesianShaderCallback? onCreateShader,
})

Creating an argument constructor of HiloSeries class.

Implementation

HiloSeries({
  ValueKey<String>? key,
  ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  required List<T> dataSource,
  required ChartValueMapper<T, D> xValueMapper,
  required ChartValueMapper<T, num> lowValueMapper,
  required ChartValueMapper<T, num> highValueMapper,
  ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  ChartValueMapper<T, Color>? pointColorMapper,
  ChartValueMapper<T, String>? dataLabelMapper,
  SortingOrder? sortingOrder,
  String? xAxisName,
  String? yAxisName,
  String? name,
  Color? color,
  MarkerSettings? markerSettings,
  EmptyPointSettings? emptyPointSettings,
  DataLabelSettings? dataLabelSettings,
  bool? isVisible,
  bool? enableTooltip,
  double? animationDuration,
  double? borderWidth,
  SelectionBehavior? selectionBehavior,
  bool? isVisibleInLegend,
  LegendIconType? legendIconType,
  String? legendItemText,
  List<double>? dashArray,
  double? opacity,
  double? animationDelay,
  double? spacing,
  List<int>? initialSelectedDataIndexes,
  bool? showIndicationForSameValues,
  List<Trendline>? trendlines,
  SeriesRendererCreatedCallback? onRendererCreated,
  ChartPointInteractionCallback? onPointTap,
  ChartPointInteractionCallback? onPointDoubleTap,
  ChartPointInteractionCallback? onPointLongPress,
  CartesianShaderCallback? onCreateShader,
}) : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          name: name,
          dashArray: dashArray,
          spacing: spacing,
          xValueMapper: xValueMapper,
          lowValueMapper: lowValueMapper,
          highValueMapper: highValueMapper,
          sortFieldValueMapper: sortFieldValueMapper,
          pointColorMapper: pointColorMapper,
          dataLabelMapper: dataLabelMapper,
          color: color,
          dataSource: dataSource,
          xAxisName: xAxisName,
          yAxisName: yAxisName,
          markerSettings: markerSettings,
          dataLabelSettings: dataLabelSettings,
          isVisible: isVisible,
          emptyPointSettings: emptyPointSettings,
          enableTooltip: enableTooltip,
          animationDuration: animationDuration,
          borderWidth: borderWidth ?? 2,
          selectionBehavior: selectionBehavior,
          legendItemText: legendItemText,
          isVisibleInLegend: isVisibleInLegend,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder,
          opacity: opacity,
          animationDelay: animationDelay,
          onCreateShader: onCreateShader,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          showIndicationForSameValues: showIndicationForSameValues ?? false,
          initialSelectedDataIndexes: initialSelectedDataIndexes,
          trendlines: trendlines);