onDataPoint method
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
@override
Future<void> onDataPoint(DataPoint dataPoint) async =>
print(jsonEncode(dataPoint));