BubbleDataSet constructor

BubbleDataSet({
  1. required Color color,
  2. required List<BubbleDataPoint> dataPoints,
})

Creates a bubble data set.

color is required for rendering. dataPoints is required and must not be empty.

Throws an AssertionError if dataPoints is empty.

Implementation

BubbleDataSet({required this.color, required this.dataPoints})
  : assert(dataPoints.isNotEmpty, 'BubbleDataSet dataPoints must not be empty');