getMeasurement method
Returns the Measurement for the last sampling window.
Implemented by subclasses.
Can return null if no data is available.
Can return an Error if an error occurs.
Implementation
@override
Future<Measurement?> getMeasurement() async => userAccelerometerEventList.isEmpty
? null
: Measurement(
sensorStartTime: sensorStartTime,
sensorEndTime: sensorEndTime,
data: AccelerationFeatures.fromAccelerometerReadings(userAccelerometerEventList),
);