addHealthBodyMass method

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

Implementation

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