FFLineChartLine constructor

FFLineChartLine({
  1. bool? legacyCurved,
  2. bool? legacyShowDots,
  3. double? legacyLineWidth,
  4. @Deprecated('This field is deprecated.') FFColor? legacyColor,
  5. bool? legacyFillBelowLine,
  6. FFColor? legacyFillColor,
  7. FFGradient? gradient,
  8. bool? legacyPreventCurveFromOvershooting,
  9. FFBooleanValue? curvedValue,
  10. FFBooleanValue? showDotsValue,
  11. FFDoubleValue? lineWidthValue,
  12. FFBooleanValue? fillBelowLineValue,
  13. FFColorValue? fillColorValue,
  14. FFBooleanValue? preventCurveFromOvershootingValue,
  15. FFBooleanValue? dashedValue,
  16. FFDoubleValue? dotSizeValue,
})

Implementation

factory FFLineChartLine({
  $core.bool? legacyCurved,
  $core.bool? legacyShowDots,
  $core.double? legacyLineWidth,
  @$core.Deprecated('This field is deprecated.') FFColor? legacyColor,
  $core.bool? legacyFillBelowLine,
  FFColor? legacyFillColor,
  FFGradient? gradient,
  $core.bool? legacyPreventCurveFromOvershooting,
  FFBooleanValue? curvedValue,
  FFBooleanValue? showDotsValue,
  FFDoubleValue? lineWidthValue,
  FFBooleanValue? fillBelowLineValue,
  FFColorValue? fillColorValue,
  FFBooleanValue? preventCurveFromOvershootingValue,
  FFBooleanValue? dashedValue,
  FFDoubleValue? dotSizeValue,
}) {
  final result = create();
  if (legacyCurved != null) result.legacyCurved = legacyCurved;
  if (legacyShowDots != null) result.legacyShowDots = legacyShowDots;
  if (legacyLineWidth != null) result.legacyLineWidth = legacyLineWidth;
  if (legacyColor != null) result.legacyColor = legacyColor;
  if (legacyFillBelowLine != null)
    result.legacyFillBelowLine = legacyFillBelowLine;
  if (legacyFillColor != null) result.legacyFillColor = legacyFillColor;
  if (gradient != null) result.gradient = gradient;
  if (legacyPreventCurveFromOvershooting != null)
    result.legacyPreventCurveFromOvershooting =
        legacyPreventCurveFromOvershooting;
  if (curvedValue != null) result.curvedValue = curvedValue;
  if (showDotsValue != null) result.showDotsValue = showDotsValue;
  if (lineWidthValue != null) result.lineWidthValue = lineWidthValue;
  if (fillBelowLineValue != null)
    result.fillBelowLineValue = fillBelowLineValue;
  if (fillColorValue != null) result.fillColorValue = fillColorValue;
  if (preventCurveFromOvershootingValue != null)
    result.preventCurveFromOvershootingValue =
        preventCurveFromOvershootingValue;
  if (dashedValue != null) result.dashedValue = dashedValue;
  if (dotSizeValue != null) result.dotSizeValue = dotSizeValue;
  return result;
}