FFLineChart constructor
FFLineChart({
- Iterable<
FFLineChartLine> ? lines, - @Deprecated('This field is deprecated.') FFColor? legacyBackgroundColor,
- @Deprecated('This field is deprecated.') FFColor? legacyBorderColor,
- @Deprecated('This field is deprecated.') bool? legacyShowGrid,
- @Deprecated('This field is deprecated.') FFLineChart_LegacyAxisLabels? legacyAxisLabels,
- @Deprecated('This field is deprecated.') FFLineChart_LegacyTooltipInfo? legacyTooltipInfo,
- @Deprecated('This field is deprecated.') FFLineChart_LegacyAxisBounds? legacyAxisBounds,
- @Deprecated('This field is deprecated.') double? legacyBorderWidth,
- @Deprecated('This field is deprecated.') bool? legacyShowBorder,
- FFChartAxisInfo? axisInfo,
- Iterable<
String> ? xLabels, - FFVariable? xLabelsValue,
- Iterable<
String> ? yLabels, - 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;
}