ChartLegend constructor

ChartLegend({
  1. ColorValue? color,
  2. StatisticDescriptor? descriptor,
  3. StringValue? dimmensionKey,
  4. ChartLegend_StatType? type,
  5. StringValue? customDisplayName,
  6. ChartLegend? other,
  7. ChartLegend_StatOperator? operator,
  8. 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;
}