HiloSeries<T, D> constructor
HiloSeries<T, D> ({
- 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,
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);