ChartLegend constructor
ChartLegend({
- ColorValue? color,
- StatisticDescriptor? descriptor,
- StringValue? dimmensionKey,
- ChartLegend_StatType? type,
- StringValue? customDisplayName,
- ChartLegend? other,
- ChartLegend_StatOperator? operator,
- DoubleValue? constant,
Implementation
factory ChartLegend({
$0.ColorValue? color,
StatisticDescriptor? descriptor,
$3.StringValue? dimmensionKey,
ChartLegend_StatType? type,
$3.StringValue? customDisplayName,
ChartLegend? other,
ChartLegend_StatOperator? operator,
$3.DoubleValue? constant,
}) {
final result = create();
if (color != null) result.color = color;
if (descriptor != null) result.descriptor = descriptor;
if (dimmensionKey != null) result.dimmensionKey = dimmensionKey;
if (type != null) result.type = type;
if (customDisplayName != null) result.customDisplayName = customDisplayName;
if (other != null) result.other = other;
if (operator != null) result.operator = operator;
if (constant != null) result.constant = constant;
return result;
}