addHealthCycling method

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

Implementation

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