getAppleHealthElementByDateAndParameter method
Implementation
Future<AppleHealthElement?> getAppleHealthElementByDateAndParameter(
String? type,
String? from,
String? to,
) async {
try {
return appleHealthElementBox!.values.firstWhere((element) =>
element.type == type &&
element.dateFrom == from &&
element.dateTo == to);
} catch (_) {}
return null;
}