Chart constructor

Chart({
  1. ChartId? id,
  2. String? displayName,
  3. Iterable<ChartLegend>? legends,
  4. double? zoom,
  5. Chart_ChartType? type,
  6. StatisticsQuery? query,
})

Implementation

factory Chart({
  $1.ChartId? id,
  $core.String? displayName,
  $core.Iterable<ChartLegend>? legends,
  $core.double? zoom,
  Chart_ChartType? type,
  StatisticsQuery? query,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (displayName != null) result.displayName = displayName;
  if (legends != null) result.legends.addAll(legends);
  if (zoom != null) result.zoom = zoom;
  if (type != null) result.type = type;
  if (query != null) result.query = query;
  return result;
}