FFChartLegendInfo constructor
FFChartLegendInfo({
- FFText? textStyle,
- FFAlignment? alignment,
- double? legacyIndicatorSize,
- FFBorderRadius? indicatorBorderRadius,
- FFPadding? textPadding,
- FFDimensions? legendDimensions,
- FFPadding? legendPadding,
- FFColor? legacyLegendBackgroundColor,
- FFBorderRadius? legendBorderRadius,
- FFColor? legacyLegendBorderColor,
- double? legacyLegendBorderWidth,
- FFDoubleValue? indicatorSizeValue,
- FFColorValue? legendBackgroundColorValue,
- FFColorValue? legendBorderColorValue,
- 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;
}