writeParameter method

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