addHealthHeartRate method

Future<ResultBase> addHealthHeartRate(
  1. int heartRate, {
  2. DateTime? time,
})

Implementation

Future<ResultBase> addHealthHeartRate(int heartRate, {DateTime? time}) async {
  var result = await _channel.invokeMethod('addHealthHeartRate', {
    'heartRate': heartRate,
    'time': (time ?? DateTime.now()).millisecondsSinceEpoch,
  });
  return ResultBase.fromJson(result);
}