writeParameter method
Future<bool>
writeParameter({
- required AppleHealthParameterType parameterType,
- required DateTime start,
- required DateTime end,
- required double value,
Implementation
Future<bool> writeParameter({
required AppleHealthParameterType parameterType,
required DateTime start,
required DateTime end,
required double value,
}) async {
return health.writeHealthData(
value: value,
type: _getDataTypeFromParameter(parameterType),
startTime: start,
endTime: end,
);
}