onDataPoint method

Future<void> onDataPoint(
  1. DataPoint dataPoint
)
override

On each data event from the data stream, the onDataPoint handler is called. Implementations of this interface should handle how to save or upload the dataPoint.

Implementation

Future<void> onDataPoint(DataPoint dataPoint) => uploadData(dataPoint);