addHealthMindfulness method

Future<ResultBase> addHealthMindfulness(
  1. DateTime startDate,
  2. DateTime endDate
)

Implementation

Future<ResultBase> addHealthMindfulness(
    DateTime startDate, DateTime endDate) async {
  var tempStartDate = startDate;
  var tempEndDate = endDate;
  if (endDate.isBefore(startDate)) {
    tempStartDate = endDate;
    tempEndDate = startDate;
  }
  var result = await _channel.invokeMethod('addHealthMindfulness', {
    'startDate': tempStartDate.millisecondsSinceEpoch,
    'endDate': tempEndDate.millisecondsSinceEpoch
  });
  return ResultBase.fromJson(result);
}