writeParameter method

Future<bool> writeParameter({
  1. required GoogleHealthParameterType parameterType,
  2. required DateTime start,
  3. required DateTime end,
  4. 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,
  );
}