LineSeries<T, D> constructor
LineSeries<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,
- List<
Trendline> ? trendlines, - bool? isVisible,
- String? name,
- bool? enableTooltip,
- List<
double> ? dashArray, - double? animationDuration,
- SelectionSettings? selectionSettings,
- SelectionBehavior? selectionBehavior,
- bool? isVisibleInLegend,
- LegendIconType? legendIconType,
- SortingOrder? sortingOrder,
- String? legendItemText,
- double? opacity,
- List<
int> ? initialSelectedDataIndexes, - SeriesRendererCreatedCallback? onRendererCreated,
Creating an argument constructor of LineSeries class.
Implementation
LineSeries(
{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,
List<Trendline>? trendlines,
bool? isVisible,
String? name,
bool? enableTooltip,
List<double>? dashArray,
double? animationDuration,
// ignore: deprecated_member_use_from_same_package
SelectionSettings? selectionSettings,
SelectionBehavior? selectionBehavior,
bool? isVisibleInLegend,
LegendIconType? legendIconType,
SortingOrder? sortingOrder,
String? legendItemText,
double? opacity,
List<int>? initialSelectedDataIndexes,
SeriesRendererCreatedCallback? onRendererCreated})
: super(
key: key,
onRendererCreated: onRendererCreated,
onCreateRenderer: onCreateRenderer,
name: name,
xValueMapper: xValueMapper,
yValueMapper: yValueMapper,
sortFieldValueMapper: sortFieldValueMapper,
pointColorMapper: pointColorMapper,
dataLabelMapper: dataLabelMapper,
dataSource: dataSource,
xAxisName: xAxisName,
yAxisName: yAxisName,
color: color,
width: width ?? 2,
markerSettings: markerSettings,
emptyPointSettings: emptyPointSettings,
trendlines: trendlines,
dataLabelSettings: dataLabelSettings,
isVisible: isVisible,
enableTooltip: enableTooltip,
dashArray: dashArray,
animationDuration: animationDuration,
selectionSettings: selectionSettings,
selectionBehavior: selectionBehavior,
legendItemText: legendItemText,
isVisibleInLegend: isVisibleInLegend,
legendIconType: legendIconType,
sortingOrder: sortingOrder,
opacity: opacity,
initialSelectedDataIndexes: initialSelectedDataIndexes);