FFChartLegendInfo constructor

FFChartLegendInfo({
  1. FFText? textStyle,
  2. FFAlignment? alignment,
  3. double? legacyIndicatorSize,
  4. FFBorderRadius? indicatorBorderRadius,
  5. FFPadding? textPadding,
  6. FFDimensions? legendDimensions,
  7. FFPadding? legendPadding,
  8. FFColor? legacyLegendBackgroundColor,
  9. FFBorderRadius? legendBorderRadius,
  10. FFColor? legacyLegendBorderColor,
  11. double? legacyLegendBorderWidth,
  12. FFDoubleValue? indicatorSizeValue,
  13. FFColorValue? legendBackgroundColorValue,
  14. FFColorValue? legendBorderColorValue,
  15. FFDoubleValue? legendBorderWidthValue,
})

Implementation

factory FFChartLegendInfo({
  FFText? textStyle,
  FFAlignment? alignment,
  $core.double? legacyIndicatorSize,
  FFBorderRadius? indicatorBorderRadius,
  FFPadding? textPadding,
  FFDimensions? legendDimensions,
  FFPadding? legendPadding,
  FFColor? legacyLegendBackgroundColor,
  FFBorderRadius? legendBorderRadius,
  FFColor? legacyLegendBorderColor,
  $core.double? legacyLegendBorderWidth,
  FFDoubleValue? indicatorSizeValue,
  FFColorValue? legendBackgroundColorValue,
  FFColorValue? legendBorderColorValue,
  FFDoubleValue? legendBorderWidthValue,
}) {
  final result = create();
  if (textStyle != null) result.textStyle = textStyle;
  if (alignment != null) result.alignment = alignment;
  if (legacyIndicatorSize != null)
    result.legacyIndicatorSize = legacyIndicatorSize;
  if (indicatorBorderRadius != null)
    result.indicatorBorderRadius = indicatorBorderRadius;
  if (textPadding != null) result.textPadding = textPadding;
  if (legendDimensions != null) result.legendDimensions = legendDimensions;
  if (legendPadding != null) result.legendPadding = legendPadding;
  if (legacyLegendBackgroundColor != null)
    result.legacyLegendBackgroundColor = legacyLegendBackgroundColor;
  if (legendBorderRadius != null)
    result.legendBorderRadius = legendBorderRadius;
  if (legacyLegendBorderColor != null)
    result.legacyLegendBorderColor = legacyLegendBorderColor;
  if (legacyLegendBorderWidth != null)
    result.legacyLegendBorderWidth = legacyLegendBorderWidth;
  if (indicatorSizeValue != null)
    result.indicatorSizeValue = indicatorSizeValue;
  if (legendBackgroundColorValue != null)
    result.legendBackgroundColorValue = legendBackgroundColorValue;
  if (legendBorderColorValue != null)
    result.legendBorderColorValue = legendBorderColorValue;
  if (legendBorderWidthValue != null)
    result.legendBorderWidthValue = legendBorderWidthValue;
  return result;
}