BPMChart constructor

BPMChart(
  1. List<SensorValue> data, {
  2. List<SensorValue>? data2,
})

Generate the heart BPM graph from given list of data of type SensorValue

Implementation

BPMChart(
  /// List of [SensorValue] data points to be plotted
  List<SensorValue> data, {

  /// List of second series of [SensorValue] data points to be plotted
  List<SensorValue>? data2,
}) : _data = data2 == null
          ? [_updateChartData(data)]
          : [_updateChartData(data), _updateChartData(data2, 2)];