addHealthStepCount method

Future<ResultBase> addHealthStepCount(
  1. double stepCount, {
  2. DateTime? startDate,
  3. DateTime? endDate,
})

Implementation

Future<ResultBase> addHealthStepCount(double stepCount,
    {DateTime? startDate, DateTime? endDate}) async {
  var result = await _channel.invokeMethod('addHealthStepCount', {
    'stepCount': stepCount,
    'startDate': (startDate ?? DateTime.now()).millisecondsSinceEpoch,
    'endDate': (endDate ?? DateTime.now()).millisecondsSinceEpoch
  });
  return ResultBase.fromJson(result);
}