addHealthLeanBodyMass method

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

Implementation

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