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