addHealthBodyMassIndex method

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

Implementation

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