DataPoint.fromData constructor

DataPoint.fromData(
  1. Data data
)

Create a DataPoint from a Data object.

Implementation

factory DataPoint.fromData(Data data) => DataPoint(
    DataPointHeader(
      dataFormat: data.format,
      startTime: DateTime.now().toUtc(),
    ),
    data);