Chart constructor
Chart({
- ChartId? id,
- String? displayName,
- Iterable<
ChartLegend> ? legends, - double? zoom,
- Chart_ChartType? type,
- 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;
}