FFLineChart constructor

FFLineChart({
  1. Iterable<FFLineChartLine>? lines,
  2. @Deprecated('This field is deprecated.') FFColor? legacyBackgroundColor,
  3. @Deprecated('This field is deprecated.') FFColor? legacyBorderColor,
  4. @Deprecated('This field is deprecated.') bool? legacyShowGrid,
  5. @Deprecated('This field is deprecated.') FFLineChart_LegacyAxisLabels? legacyAxisLabels,
  6. @Deprecated('This field is deprecated.') FFLineChart_LegacyTooltipInfo? legacyTooltipInfo,
  7. @Deprecated('This field is deprecated.') FFLineChart_LegacyAxisBounds? legacyAxisBounds,
  8. @Deprecated('This field is deprecated.') double? legacyBorderWidth,
  9. @Deprecated('This field is deprecated.') bool? legacyShowBorder,
  10. FFChartAxisInfo? axisInfo,
  11. Iterable<String>? xLabels,
  12. FFVariable? xLabelsValue,
  13. Iterable<String>? yLabels,
  14. FFVariable? yLabelsValue,
})

Implementation

factory FFLineChart({
  $core.Iterable<FFLineChartLine>? lines,
  @$core.Deprecated('This field is deprecated.')
  FFColor? legacyBackgroundColor,
  @$core.Deprecated('This field is deprecated.') FFColor? legacyBorderColor,
  @$core.Deprecated('This field is deprecated.') $core.bool? legacyShowGrid,
  @$core.Deprecated('This field is deprecated.')
  FFLineChart_LegacyAxisLabels? legacyAxisLabels,
  @$core.Deprecated('This field is deprecated.')
  FFLineChart_LegacyTooltipInfo? legacyTooltipInfo,
  @$core.Deprecated('This field is deprecated.')
  FFLineChart_LegacyAxisBounds? legacyAxisBounds,
  @$core.Deprecated('This field is deprecated.')
  $core.double? legacyBorderWidth,
  @$core.Deprecated('This field is deprecated.') $core.bool? legacyShowBorder,
  FFChartAxisInfo? axisInfo,
  $core.Iterable<$core.String>? xLabels,
  FFVariable? xLabelsValue,
  $core.Iterable<$core.String>? yLabels,
  FFVariable? yLabelsValue,
}) {
  final result = create();
  if (lines != null) result.lines.addAll(lines);
  if (legacyBackgroundColor != null)
    result.legacyBackgroundColor = legacyBackgroundColor;
  if (legacyBorderColor != null) result.legacyBorderColor = legacyBorderColor;
  if (legacyShowGrid != null) result.legacyShowGrid = legacyShowGrid;
  if (legacyAxisLabels != null) result.legacyAxisLabels = legacyAxisLabels;
  if (legacyTooltipInfo != null) result.legacyTooltipInfo = legacyTooltipInfo;
  if (legacyAxisBounds != null) result.legacyAxisBounds = legacyAxisBounds;
  if (legacyBorderWidth != null) result.legacyBorderWidth = legacyBorderWidth;
  if (legacyShowBorder != null) result.legacyShowBorder = legacyShowBorder;
  if (axisInfo != null) result.axisInfo = axisInfo;
  if (xLabels != null) result.xLabels.addAll(xLabels);
  if (xLabelsValue != null) result.xLabelsValue = xLabelsValue;
  if (yLabels != null) result.yLabels.addAll(yLabels);
  if (yLabelsValue != null) result.yLabelsValue = yLabelsValue;
  return result;
}