readTodaySummation method
Reads the summary data of a specified data type of the current day.
If the related data type does not support aggregation statistics, an exception will be thrown.
Implementation
Future<SampleSet?> readTodaySummation(
DataType dataType,
) async {
final Map<dynamic, dynamic>? result =
await _channel.invokeMethod<Map<dynamic, dynamic>?>(
'readTodaySummation',
dataType.toMap(),
);
if (result == null) {
return null;
}
return SampleSet.fromMap(result);
}