getGoogleHealthConnectElementByDateAndParameter method
Implementation
Future<GoogleHealthConnectElement?>
getGoogleHealthConnectElementByDateAndParameter(
String type,
String from,
String to,
String value,
) async {
try {
return googleHealthConnectElementBox!.values.firstWhere((element) =>
element.type == type &&
element.dateFrom == from &&
element.dateTo == to &&
element.healthValue == value);
} catch (_) {}
return null;
}