onDataPoint method

  1. @override
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

@override
Future<void> onDataPoint(DataPoint dataPoint) async =>
    print(jsonEncode(dataPoint));