StackedLineSeries<T, D> constructor
StackedLineSeries<T, D> ({
- ValueKey<
String> ? key, - ChartSeriesRendererFactory<
T, D> ? onCreateRenderer, - required 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, - String? xAxisName,
- String? yAxisName,
- Color? color,
- double? width,
- MarkerSettings? markerSettings,
- EmptyPointSettings? emptyPointSettings,
- DataLabelSettings? dataLabelSettings,
- bool? isVisible,
- String? name,
- bool? enableTooltip,
- List<
double> ? dashArray, - double? animationDuration,
- String? groupName,
- List<
Trendline> ? trendlines, - SelectionBehavior? selectionBehavior,
- bool? isVisibleInLegend,
- LegendIconType? legendIconType,
- SortingOrder? sortingOrder,
- String? legendItemText,
- double? opacity,
- double? animationDelay,
- SeriesRendererCreatedCallback? onRendererCreated,
- ChartPointInteractionCallback? onPointTap,
- ChartPointInteractionCallback? onPointDoubleTap,
- ChartPointInteractionCallback? onPointLongPress,
- CartesianShaderCallback? onCreateShader,
- List<
int> ? initialSelectedDataIndexes,
Creating an argument constructor of StackedLineSeries class.
Implementation
StackedLineSeries(
{ValueKey<String>? key,
ChartSeriesRendererFactory<T, D>? onCreateRenderer,
required 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,
String? xAxisName,
String? yAxisName,
Color? color,
double? width,
MarkerSettings? markerSettings,
EmptyPointSettings? emptyPointSettings,
DataLabelSettings? dataLabelSettings,
bool? isVisible,
String? name,
bool? enableTooltip,
List<double>? dashArray,
double? animationDuration,
String? groupName,
List<Trendline>? trendlines,
SelectionBehavior? selectionBehavior,
bool? isVisibleInLegend,
LegendIconType? legendIconType,
SortingOrder? sortingOrder,
String? legendItemText,
double? opacity,
double? animationDelay,
SeriesRendererCreatedCallback? onRendererCreated,
ChartPointInteractionCallback? onPointTap,
ChartPointInteractionCallback? onPointDoubleTap,
ChartPointInteractionCallback? onPointLongPress,
CartesianShaderCallback? onCreateShader,
List<int>? initialSelectedDataIndexes})
: super(
key: key,
onCreateRenderer: onCreateRenderer,
name: name,
xValueMapper: xValueMapper,
yValueMapper: yValueMapper,
sortFieldValueMapper: sortFieldValueMapper,
pointColorMapper: pointColorMapper,
dataLabelMapper: dataLabelMapper,
dataSource: dataSource,
xAxisName: xAxisName,
trendlines: trendlines,
yAxisName: yAxisName,
color: color,
width: width ?? 2,
markerSettings: markerSettings,
emptyPointSettings: emptyPointSettings,
dataLabelSettings: dataLabelSettings,
isVisible: isVisible,
enableTooltip: enableTooltip,
dashArray: dashArray,
animationDuration: animationDuration,
selectionBehavior: selectionBehavior,
legendItemText: legendItemText,
isVisibleInLegend: isVisibleInLegend,
legendIconType: legendIconType,
sortingOrder: sortingOrder,
groupName: groupName,
opacity: opacity,
animationDelay: animationDelay,
onCreateShader: onCreateShader,
onRendererCreated: onRendererCreated,
onPointTap: onPointTap,
onPointDoubleTap: onPointDoubleTap,
onPointLongPress: onPointLongPress,
initialSelectedDataIndexes: initialSelectedDataIndexes);