StackedBarSeries<T, D>  constructor 
      const
      StackedBarSeries<T, D> ({ 
    
- ValueKey<String> ? key,
- ChartSeriesRendererFactory<T, D> ? onCreateRenderer,
- List<T> ? dataSource,
- required ChartValueMapper<T, D> ? xValueMapper,
- required ChartValueMapper<T, num> ? yValueMapper,
- ChartValueMapper<T, dynamic> ? sortFieldValueMapper,
- ChartValueMapper<T, Color> ? pointColorMapper,
- ChartValueMapper<T, String> ? dataLabelMapper,
- SortingOrder sortingOrder = SortingOrder.none,
- bool isTrackVisible = false,
- String groupName = '',
- Color trackColor = Colors.grey,
- Color trackBorderColor = Colors.transparent,
- double trackBorderWidth = 1.0,
- double trackPadding = 0.0,
- BorderRadius borderRadius = BorderRadius.zero,
- double spacing = 0.0,
- String? xAxisName,
- String? yAxisName,
- String? name,
- Color? color,
- double width = 0.7,
- MarkerSettings markerSettings = const MarkerSettings(),
- EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
- DataLabelSettings dataLabelSettings = const DataLabelSettings(),
- bool initialIsVisible = true,
- LinearGradient? gradient,
- LinearGradient? borderGradient,
- bool enableTooltip = true,
- double animationDuration = 1500,
- List<Trendline> ? trendlines,
- Color borderColor = Colors.transparent,
- double borderWidth = 2.0,
- SelectionBehavior? selectionBehavior,
- bool isVisibleInLegend = true,
- LegendIconType legendIconType = LegendIconType.seriesType,
- String? legendItemText,
- List<double> ? dashArray,
- double opacity = 1.0,
- double animationDelay = 0,
- SeriesRendererCreatedCallback<T, D> ? onRendererCreated,
- ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- CartesianShaderCallback? onCreateShader,
- List<int> ? initialSelectedDataIndexes,
Creating an argument constructor of StackedBarSeries class.
Implementation
const StackedBarSeries({
  super.key,
  super.onCreateRenderer,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.sortFieldValueMapper,
  super.pointColorMapper,
  super.dataLabelMapper,
  super.sortingOrder,
  super.isTrackVisible = false,
  this.groupName = '',
  super.trackColor = Colors.grey,
  super.trackBorderColor = Colors.transparent,
  super.trackBorderWidth = 1.0,
  super.trackPadding = 0.0,
  this.borderRadius = BorderRadius.zero,
  this.spacing = 0.0,
  super.xAxisName,
  super.yAxisName,
  super.name,
  super.color,
  this.width = 0.7,
  super.markerSettings,
  super.emptyPointSettings,
  super.dataLabelSettings,
  super.initialIsVisible,
  super.gradient,
  super.borderGradient,
  super.enableTooltip = true,
  super.animationDuration,
  super.trendlines,
  this.borderColor = Colors.transparent,
  super.borderWidth,
  super.selectionBehavior,
  super.isVisibleInLegend,
  super.legendIconType,
  super.legendItemText,
  super.dashArray,
  super.opacity,
  super.animationDelay,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.onCreateShader,
  super.initialSelectedDataIndexes,
});