addHealthStature method

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

Implementation

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